Subversion Repositories Games.Chess Giants

Rev

Rev 151 | Rev 178 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
154 pmbaty 1
; Chess engine configuration file for Chess Giants.
115 pmbaty 2
 
154 pmbaty 3
; Chess Giants is engine-agnostic, which means it can handle any CECP-compliant
4
; engine, and virtually any state-based engine that communicates using newline-
5
; terminated ASCII strings over standard IO (stdin/stdout). All it needs is to
6
; read this configuration file to learn how to talk to the engine, and how to
7
; interpret the engine's replies.
115 pmbaty 8
 
154 pmbaty 9
;#############################
10
;# Basic program information #
11
;#############################
115 pmbaty 12
[program]
13
 
14
; program display name
15
name = "Fruit Reloaded"
16
; program executable
154 pmbaty 17
executable = "Fruit_reloaded.exe"
151 pmbaty 18
; optional program arguments
19
arguments = ""
115 pmbaty 20
 
154 pmbaty 21
;#########################
22
;# Reply string patterns #
23
;#########################
115 pmbaty 24
[reply strings]
25
 
26
; the following pattern immediately precedes a SAN-encoded move reply
154 pmbaty 27
move = "bestmove "
115 pmbaty 28
 
154 pmbaty 29
;##################################################
30
;# Engine commands (separate each by a semicolon) #
31
;##################################################
115 pmbaty 32
[commands]
154 pmbaty 33
; Special strings: some strings enclosed between ${...} are converted during
34
; the game to dynamic values. We call this "variables". Here is the list:
35
; ${MAX_CORES} -- will be expanded to the maximum number of CPU cores to use
36
; ${CURRENT_POS} -- will be expanded to the full FEN string of the current pos
37
; ${SEARCH_DEPTH} -- will be expanded to the maximum allowed search depth
38
; ${LAST_MOVE} -- will be expanded to the last move in long algebraic notation
39
; ${GAME_HISTORY} -- will be expanded to the game history in long algebraic
115 pmbaty 40
 
41
; command(s) to send to prepare the engine for a new game
154 pmbaty 42
new game = "uci;ucinewgame;setoption name Threads value ${MAX_CORES}"
43
 
44
; command(s) to send to setup a board (using a raw FEN string)
45
setup table from fen = "position ${CURRENT_POS}"
46
 
115 pmbaty 47
; command(s) to send to order the engine to start playing (when switching sides)
154 pmbaty 48
play = "position startpos moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
49
 
50
; command(s) to send to instruct the engine that its opponent played a move
51
move = "position startpos moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
52
 
53
; command(s) to send to order the engine to change its last move and force one
54
force move = ""
55
 
115 pmbaty 56
; command(s) to send to tell the chess engine to cleanup and quit. if unset,
57
; its process will be killed, but at the risk of not saving important data.
58
quit = "quit"