; Chess engine configuration file for Chess Giants.
; Chess Giants is engine-agnostic, which means it can handle any CECP-compliant
; engine, and virtually any state-based engine that communicates using newline-
; terminated ASCII strings over standard IO (stdin/stdout). All it needs is to
; read this configuration file to learn how to talk to the engine, and how to
; interpret the engine's replies.
;#############################
;# Basic program information #
;#############################
[program]
; program display name
name = "Stockfish 9"
; program executable
executable = "stockfish.exe"
; optional program arguments
arguments = ""
;#########################
;# Reply string patterns #
;#########################
[reply strings]
; the following pattern immediately precedes a SAN-encoded move reply
move = "bestmove "
;##################################################
;# Engine commands (separate each by a semicolon) #
;##################################################
[commands]
; Special strings: some strings enclosed between ${...} are converted during
; the game to dynamic values. We call this "variables". Here is the list:
; ${MAX_CORES} -- will be expanded to the maximum number of CPU cores to use
; ${CURRENT_POS} -- will be expanded to the full FEN string of the current pos
; ${SEARCH_DEPTH} -- will be expanded to the maximum allowed search depth
; ${LAST_MOVE} -- will be expanded to the last move in long algebraic notation
; ${GAME_HISTORY} -- will be expanded to the game history in long algebraic
; command(s) to send to prepare the engine for a new game
new game = "uci;ucinewgame;setoption name Threads value ${MAX_CORES}"
; command(s) to send to setup a board (using a raw FEN string)
setup table from fen = "position ${CURRENT_POS}"
; command(s) to send to order the engine to start playing (when switching sides)
play = "position startpos moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
; command(s) to send to instruct the engine that its opponent played a move
move = "position startpos moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
; command(s) to send to order the engine to change its last move and force one
force move = ""
; command(s) to send to tell the chess engine to cleanup and quit. if unset,
; its process will be killed, but at the risk of not saving important data.
quit = "quit"