/heuristic
Balance of a chess heuristic.
variant
The chess variant as per these options.
classicalchess, also known as standard or slow chess.960is the same as classical chess except that the starting position of the pieces is randomized.dunsanyis an asymmetric variant in which Black has the standard chess army and White has 32 pawns.losingchess, the objective of each player is to lose all of their pieces or be stalemated.racing-kingsconsists of being the first player to move their king to the eighth row.capablancaincorporates two new pieces, the archbishop and the chancellor, and is played on a 10×8 board.capablanca-fischeris a mix of Capablanca chess and Chess960.
movetext
The sequence of moves played in the game.
name
The name of the heuristic as per these options.
MaterialCenterConnectivitySpacePressureKing safetyProtectionDiscovered checkDoubled pawnPassed pawnAdvanced pawnFar-advanced pawnIsolated pawnBackward pawnDefenseAbsolute skewerAbsolute pinRelative pinAbsolute forkRelative forkOutpost squareKnight outpostBishop outpostBishop pairBad bishopDiagonal oppositionDirect oppositionOverloading
Usage
Example
ws.send('/heuristic "{\\"variant\\":\\"classical\\",\\"movetext\\":\\"1.e4 e5 2.Nf3 Nc6 3.Bc4\\",\\"name\\":\\"Center\\"}"');
{
"/heuristic": [
0,
1,
0,
0.62,
0.25,
0.81
]
}