Rev 109 | Rev 154 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line | 
|---|---|---|---|
| 33 | pmbaty | 1 | # Chess engine configuration file for Chess Giants. | 
| 32 | pmbaty | 2 | |
| 44 | 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. | ||
| 33 | pmbaty | 8 | |
| 44 | pmbaty | 9 | # IMPORTANT: UCI engines are "stateless" engines. These engines work in a very | 
| 10 | # different way and therefore an adapter program such as Polyglot must be used. | ||
| 50 | pmbaty | 11 | # See the "Fruit" or "Stockfish" engine configuration files for an example. | 
| 44 | pmbaty | 12 | |
| 33 | pmbaty | 13 | ############################# | 
| 14 | # Basic program information # | ||
| 15 | ############################# | ||
| 16 | [program] | ||
| 17 | |||
| 18 | ; program display name | ||
| 109 | pmbaty | 19 | name = "Crafty 25.0.1" | 
| 33 | pmbaty | 20 | ; program executable | 
| 40 | pmbaty | 21 | executable = "crafty.exe" | 
| 151 | pmbaty | 22 | ; optional program arguments | 
| 23 | arguments = "" | ||
| 33 | pmbaty | 24 | |
| 25 | ######################### | ||
| 26 | # Reply string patterns # | ||
| 27 | ######################### | ||
| 28 | [reply strings] | ||
| 29 | |||
| 30 | ; the following pattern immediately precedes a SAN-encoded move reply | ||
| 51 | pmbaty | 31 | move = "move " | 
| 33 | pmbaty | 32 | |
| 33 | ################### | ||
| 34 | # Engine commands # | ||
| 35 | ################### | ||
| 36 | [commands] | ||
| 37 | |||
| 38 | ; command(s) to send to prepare the engine for a new game | ||
| 40 | pmbaty | 39 | new game = "new" | 
| 44 | pmbaty | 40 | ; command(s) to send to setup a board (%s replaced by a raw FEN string) | 
| 40 | pmbaty | 41 | setup table from fen = "setboard %s" | 
| 44 | pmbaty | 42 | ; command(s) to send to set the max search depth (%d replaced by an integer value) | 
| 40 | pmbaty | 43 | search depth set = "sd %d" | 
| 33 | pmbaty | 44 | ; command(s) to send to order the engine to start playing (when switching sides) | 
| 40 | pmbaty | 45 | play = "go" | 
| 44 | pmbaty | 46 | ; command(s) to send to instruct the engine that its opponent played a specific | 
| 47 | ; move (%s replaced by a 'b1c3'-style encoded move string) | ||
| 48 | move = "%s" | ||
| 42 | pmbaty | 49 | ; command(s) to send to order the engine to discard its preferred move and play | 
| 44 | pmbaty | 50 | ; a specific move instead (%s replaced by a 'b1c3'-style encoded move string) | 
| 51 | pmbaty | 51 | force move = "force;undo;%s;playother" | 
| 33 | pmbaty | 52 | ; command(s) to send to tell the chess engine to cleanup and quit. if unset, | 
| 53 | ; its process will be killed, but at the risk of not saving important data. | ||
| 40 | pmbaty | 54 | quit = "quit" |