Package | Description |
---|---|
net.viktorc.detroid.framework.engine |
Modifier and Type | Method and Description |
---|---|
Position |
Game.getPosition() |
Position |
Game.getStartPos() |
static Position |
Position.parse(String fen)
It parses a FEN string and initializes a position instance based on it.
|
Modifier and Type | Method and Description |
---|---|
long |
ZobristKeyGenerator.generateHashKey(Position pos)
Generates a main Zobrist hash key for the position based on the side to move, the board state, and the castling and en passant rights.
|
long |
ZobristKeyGenerator.generatePawnKingHashKey(Position pos)
Generates a Zobrist hash key for the pawn-king structure on the board.
|
long |
ZobristKeyGenerator.generatePolyglotHashKey(Position pos)
Generates a 64 bitboard hash key used for positions in PolyGlot opening books.
|
abstract Move |
OpeningBook.getMove(Position pos,
OpeningBook.SelectionModel selection)
Picks and returns an opening move for the Position0 from all the relevant entries found in the PolyGlot book based on the specified
mathematical model for selection.
|
Move |
PolyglotBook.getMove(Position pos,
OpeningBook.SelectionModel selection) |
static boolean |
Evaluator.isMaterialInsufficient(Position pos)
Returns whether the position is a case of insufficient material.
|
static Move |
MoveStringUtils.parsePACN(Position pos,
String pacn)
Parses a move string in PACN format.
|
static Move |
MoveStringUtils.parseSAN(Position pos,
String san)
Parses a move string in SAN format.
|
EndGameTableBase.DTM |
GaviotaTableBaseJNI.probeDTM(Position pos,
boolean soft) |
abstract EndGameTableBase.DTM |
EndGameTableBase.probeDTM(Position pos,
boolean soft)
It probes for the given position and if found, it returns whether it is a win, loss, or draw; and in case it is a win or loss, it also
returns the distance to mate.
|
EndGameTableBase.WDL |
GaviotaTableBaseJNI.probeWDL(Position pos,
boolean soft) |
abstract EndGameTableBase.WDL |
EndGameTableBase.probeWDL(Position pos,
boolean soft)
It probes for the given position and if found, it returns whether it is a winning position, a losing position, or a draw; else it
returns null.
|
short |
Evaluator.score(Position pos,
byte hashGen,
ETEntry entry)
A static evaluation of the chess position from the color to move's point of view.
|
short |
Evaluator.score(Position pos,
byte hashGen,
ETEntry entry,
Map<String,Double> gradientCache)
A static evaluation of the chess position from the color to move's point of view.
|
short |
Evaluator.SEE(Position pos,
Move move)
A static exchange evaluation algorithm for determining a close approximation of a capture's value.
|
static String |
MoveStringUtils.toSAN(Position pos,
Move move)
It creates a move string in SAN format.
|
Constructor and Description |
---|
Game(Position position,
String event,
String site,
String whitePlayerName,
String blackPlayerName,
int round) |
Position(Position pos)
Clones the specified position instance.
|
Search(Position pos,
DetroidParameters params,
Evaluator eval,
EndGameTableBase egtb,
DetroidSearchInformation info,
int numOfSearchThreads,
Cache<TTEntry> transTable,
byte hashEntryGen,
boolean analysisMode,
boolean ponder,
int maxDepth,
long maxNodes,
Set<Move> moves)
Constructs a new instance using the specified parameters.
|
Copyright © 2020. All rights reserved.