Subversion Repositories Games.Chess Giants

Rev

Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 178
Line 31... Line 31...
31
;##################################################
31
;##################################################
32
[commands]
32
[commands]
33
; Special strings: some strings enclosed between ${...} are converted during
33
; Special strings: some strings enclosed between ${...} are converted during
34
; the game to dynamic values. We call this "variables". Here is the list:
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
35
; ${MAX_CORES} -- will be expanded to the maximum number of CPU cores to use
-
 
36
; ${START_POS} -- will be expanded to the full FEN string of the start pos
36
; ${CURRENT_POS} -- will be expanded to the full FEN string of the current pos
37
; ${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
; ${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
; ${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
40
; ${GAME_HISTORY} -- will be expanded to the game history in long algebraic
40
 
41
 
41
; command(s) to send to prepare the engine for a new game
42
; command(s) to send to prepare the engine for a new game
42
new game = "uci;ucinewgame;setoption name Threads value ${MAX_CORES}"
43
new game = "uci;ucinewgame;setoption name Threads value ${MAX_CORES}"
43
 
44
 
44
; command(s) to send to setup a board (using a raw FEN string)
45
; command(s) to send to setup a board (using a raw FEN string)
45
setup table from fen = "position ${CURRENT_POS}"
46
setup table from fen = "position fen ${CURRENT_POS}"
46
 
47
 
47
; command(s) to send to order the engine to start playing (when switching sides)
48
; command(s) to send to order the engine to start playing (when switching sides)
48
play = "position startpos moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
49
play = "position fen ${START_POS} moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
49
 
50
 
50
; command(s) to send to instruct the engine that its opponent played a move
51
; 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
move = "position fen ${START_POS} moves ${GAME_HISTORY};go depth ${SEARCH_DEPTH}"
52
 
53
 
53
; command(s) to send to order the engine to change its last move and force one
54
; command(s) to send to order the engine to change its last move and force one
54
force move = ""
55
force move = ""
55
 
56
 
56
; command(s) to send to tell the chess engine to cleanup and quit. if unset,
57
; command(s) to send to tell the chess engine to cleanup and quit. if unset,