18 // I need to make a uniform string type.
\r
20 #define UciStringSize 4096
\r
21 #define MultiPVStackSize 256
\r
30 const char * author;
\r
32 option_list_t option[1];
\r
48 move_t pv[LineSize];
\r
53 move_t best_pv[LineSize];
\r
54 char bestmove[UciStringSize];
\r
61 move_t current_line[LineSize];
\r
68 int multipvScore[MultiPVStackSize];
\r
69 move_t multipvMove[MultiPVStackSize];
\r
70 char info[UciStringSize];
\r
76 EVENT_READY = 1 << 1,
\r
77 EVENT_STOP = 1 << 2,
\r
78 EVENT_MOVE = 1 << 3,
\r
80 EVENT_DEPTH = 1 << 5,
\r
81 EVENT_DRAW = 1 << 6,
\r
82 EVENT_RESIGN = 1 << 7,
\r
83 EVENT_ILLEGAL_MOVE = 1 << 8,
\r
89 extern uci_t Uci[1];
\r
93 extern void uci_open (uci_t * uci, engine_t * engine);
\r
94 extern void uci_send_isready (uci_t * uci);
\r
95 extern void uci_send_isready_sync (uci_t * uci);
\r
96 extern void uci_send_stop (uci_t * uci);
\r
97 extern void uci_send_stop_sync (uci_t * uci);
\r
98 extern void uci_send_ucinewgame (uci_t * uci);
\r
99 extern void uci_set_threads (uci_t * uci, int n);
\r
100 extern const char * uci_thread_option(uci_t * uci);
\r
101 extern bool uci_send_option (uci_t * uci, const char option[], const char format[], ...);
\r
102 extern void uci_close (uci_t * uci);
\r
103 extern void uci_clear (uci_t * uci);
\r
104 extern int uci_parse (uci_t * uci, const char string[]);
\r
106 #endif // !defined UCI_H
\r