Rev 140 | Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 140 | Rev 150 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | #include <io.h> |
15 | #include <io.h> |
16 | #include <malloc.h> |
16 | #include <malloc.h> |
17 | #include <math.h> |
17 | #include <math.h> |
18 | #include <time.h> |
18 | #include <time.h> |
19 | #include <share.h> |
19 | #include <share.h> |
- | 20 | #include <fcntl.h> |
|
20 | #include <shlwapi.h> |
21 | #include <shlwapi.h> |
21 | #pragma warning(disable:4091) |
22 | #pragma warning(disable:4091) |
22 | #include <shlobj.h> |
23 | #include <shlobj.h> |
23 | #pragma warning(default:4091) |
24 | #pragma warning(default:4091) |
24 | #include <process.h> |
25 | #include <process.h> |
Line 363... | Line 364... | ||
363 | 364 | ||
364 | // engine program options definition (populated from "engines/<program>/engine.ini") |
365 | // engine program options definition (populated from "engines/<program>/engine.ini") |
365 | typedef struct engineprogram_s |
366 | typedef struct engineprogram_s |
366 | { |
367 | { |
367 | wchar_t folder[MAX_PATH]; // chess engine folder name |
368 | wchar_t folder[MAX_PATH]; // chess engine folder name |
368 | wchar_t |
369 | wchar_t friendly_name[64]; // chess engine name (will be used as player name) |
369 | wchar_t |
370 | wchar_t executable_name[MAX_PATH]; // chess engine binary startup command-line, e.g "gnuchess.exe" |
- | 371 | wchar_t executable_arguments[MAX_PATH]; // chess engine command-line arguments |
|
370 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
372 | wchar_t replystring_move[64]; // chess engine reply string for a move (positions come right after) |
371 | wchar_t command_new[64]; // command to send the chess engine to tell him we are starting a new game |
373 | wchar_t command_new[64]; // command to send the chess engine to tell him we are starting a new game |
372 | wchar_t command_setboard[64]; // command to send the chess engine to tell him to set the table in a particular way (FEN notation) |
374 | wchar_t command_setboard[64]; // command to send the chess engine to tell him to set the table in a particular way (FEN notation) |
373 | wchar_t command_sd[64]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
375 | wchar_t command_sd[64]; // command to send the chess engine to instruct it about its allowed depth (will be followed by numeric) |
374 | wchar_t command_go[64]; // command to send the chess engine to make it play the current move |
376 | wchar_t command_go[64]; // command to send the chess engine to make it play the current move |