Rev 116 | Rev 124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 116 | Rev 119 | ||
---|---|---|---|
Line 355... | Line 355... | ||
355 | bool update; // set to TRUE if the scene needs to be updated |
355 | bool update; // set to TRUE if the scene needs to be updated |
356 | } scene_t; |
356 | } scene_t; |
357 | 357 | ||
358 | 358 | ||
359 | // engine program options definition (populated from "engines/<program>/engine.ini") |
359 | // engine program options definition (populated from "engines/<program>/engine.ini") |
360 | typedef struct |
360 | typedef struct engineprogram_s |
361 | { |
361 | { |
- | 362 | wchar_t folder[MAX_PATH]; // chess engine folder name |
|
362 | wchar_t name[64]; // chess engine name (will be used as player name) |
363 | wchar_t name[64]; // chess engine name (will be used as player name) |
363 | wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe" |
364 | wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe" |
364 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
365 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
365 | wchar_t command_new[64]; // command to send the chess engine to tell him we are starting a new game |
366 | wchar_t command_new[64]; // command to send the chess engine to tell him we are starting a new game |
366 | wchar_t command_setboard[64]; // command to send the chess engine to tell him to set the table in a particular way (FEN notation) |
367 | wchar_t command_setboard[64]; // command to send the chess engine to tell him to set the table in a particular way (FEN notation) |
367 | wchar_t command_sd[64]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
368 | wchar_t command_sd[64]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
368 | wchar_t command_go[64]; // command to send the chess engine to make it play the current move |
369 | wchar_t command_go[64]; // command to send the chess engine to make it play the current move |
369 | wchar_t command_move[64]; // command to send the chess engine to instruct it that its opponent played a particular move |
370 | wchar_t command_move[64]; // command to send the chess engine to instruct it that its opponent played a particular move |
370 | wchar_t command_force[64]; // command to send the chess engine to force it to play a particular move instead of the one it wants |
371 | wchar_t command_force[64]; // command to send the chess engine to force it to play a particular move instead of the one it wants |
371 | wchar_t command_quit[64]; // command to send the chess engine to make it exit cleanly |
372 | wchar_t command_quit[64]; // command to send the chess engine to make it exit cleanly |
372 | } |
373 | } engineprogram_t; |
373 | 374 | ||
374 | 375 | ||
375 | // engine options definition |
376 | // engine options definition |
376 | typedef struct engineoptions_s |
377 | typedef struct engineoptions_s |
377 | { |
378 | { |
378 | wchar_t program[MAX_PATH]; // chess engine program name (must be a subdirectory in "engines") |
- | |
379 | int depth; // chess engine's currently allowed search depth |
379 | int depth; // chess engine's currently allowed search depth |
380 | int max_depth; // chess engine maximum search depth (used just for slider display) |
380 | int max_depth; // chess engine maximum search depth (used just for slider display) |
381 | int blunder_chances; // chess engine blunder chances, in percent |
381 | int blunder_chances; // chess engine blunder chances, in percent |
382 | int obstinacy_level; // chess engine obstinacy level, in number of moves |
382 | int obstinacy_level; // chess engine obstinacy level, in number of moves |
383 | bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings) |
383 | bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings) |
384 |
|
384 | engineprogram_t *programs; // engine programs |
- | 385 | int program_count; // size of the engines array |
|
- | 386 | int selected_program; // index of the selected engine |
|
385 | } engineoptions_t; |
387 | } engineoptions_t; |
386 | 388 | ||
387 | 389 | ||
388 | // network options definition |
390 | // network options definition |
389 | typedef struct networkoptions_s |
391 | typedef struct networkoptions_s |