Closed MarkZH closed 1 year ago
On another note, the Github tests are failing because the link to stockfish no longer works. Stockfish 11 can only be downloaded from a dropbox folder, which I doubt would allow automated downloads for long. The new link to Stockfish 16 is: https://github.com/official-stockfish/Stockfish/releases/download/sf_16/stockfish-windows-x86-64-avx2.zip
Github also has a cache mechanism to store files between test runs to negate the need to redownload or recreate them. We've done this in lichess-bot with this commit.
When a game is done, this method can be called to inform the engine of the final moves and the result of the game.
XBoard engines receive the final move of the game followed by a message like, for example,
result 1-0 {White mates}
. The second field is one of1-0
,0-1
,1/2-1/2
,*
to indicate white winning, black winning, draw, or an incomplete game. The message in curly braces is optional and meant for humans to read.If this method is called on a UCI engine, nothing happens, as those engines do not expect any endgame messages.