Subversion Repositories Games.Chess Giants

Rev

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

Rev 32 Rev 33
Line 345... Line 345...
345
 
345
 
346
 
346
 
347
// engine options definition
347
// engine options definition
348
typedef struct engineoptions_s
348
typedef struct engineoptions_s
349
{
349
{
350
   wchar_t program[64]; // chess engine program name (must be a subdirectory in "engines")
350
   wchar_t program[MAX_PATH]; // chess engine program name (must be a subdirectory in "engines")
351
   int depth; // chess engine's currently allowed search depth
351
   int depth; // chess engine's currently allowed search depth
352
   int max_depth; // chess engine maximum search depth (used just for slider display)
352
   int max_depth; // chess engine maximum search depth (used just for slider display)
353
   int blunder_chances; // chess engine blunder chances, in percent
353
   int blunder_chances; // chess engine blunder chances, in percent
354
   int obstinacy_level; // chess engine obstinacy level, in number of moves
354
   int obstinacy_level; // chess engine obstinacy level, in number of moves
355
   bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings)
355
   bool is_expert_mode; // set to TRUE if this player claims to be an expert player (in the game settings)
356
 
-
 
-
 
356
   // the following is populated from "engines/<program>/engine.ini"
357
   wchar_t name[64]; // chess engine name (will be used as player name)
357
   wchar_t name[64]; // chess engine name (will be used as player name)
358
   wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe"
358
   wchar_t cmdline[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe"
359
   wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after)
359
   wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after)
360
   wchar_t replystring_hint[64]; // chess engine reply string for a hint (positions come right after)
360
   wchar_t replystring_hint[64]; // chess engine reply string for a hint (positions come right after)
361
   wchar_t command_new[32]; // command to send the chess engine to tell him we are starting a new game
361
   wchar_t command_new[32]; // command to send the chess engine to tell him we are starting a new game