Description Usage Arguments Value
Given a board or a position string that can be accepted by UCI, calculate the next best move, opponents best move (ponder) and which player has the upper hand (score)
1 2 3 |
board |
is an board generated by |
posString |
is a string that can be accepted by a UCI as an alternative to |
movetime |
How much time should the engine spend on thinking |
wtime |
Alternative to |
btime |
Alternative to |
depth |
Alternative to |
translate |
Should the move from the UCI be translated into standard chess notation. This format
is accepted by |
ponder |
Not implemented yet. Should the engine continue to ponder |
stockfish |
A running UCI engine process. If NULL, a stockfish process will be spawned and stopped at the end of function execution. |
a list containing 4 elements. bestmove
is the calculated best move by the engine.
ponder
is the opponent's best move against the engine's best move. score
is engine's
perception of how good it's position is. scoreType
is the type of score. If its cp, upperbound or
lowerbound, the score estimate is in centipawns. If it is mate, the score is a guess of how many turns till
the opponents demise (or the engine's if its negative).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.