18 // I need to make a uniform string type.
\r
20 #define UciStringSize 4096
\r
29 const char * author;
\r
31 option_list_t option[1];
\r
47 move_t pv[LineSize];
\r
52 move_t best_pv[LineSize];
\r
59 move_t current_line[LineSize];
\r
65 char info[UciStringSize];
\r
71 EVENT_READY = 1 << 1,
\r
72 EVENT_STOP = 1 << 2,
\r
73 EVENT_MOVE = 1 << 3,
\r
75 EVENT_DEPTH = 1 << 5,
\r
76 EVENT_DRAW = 1 << 6,
\r
77 EVENT_RESIGN = 1 << 7,
\r
78 EVENT_ILLEGAL_MOVE = 1 << 8,
\r
84 extern uci_t Uci[1];
\r
88 extern void uci_open (uci_t * uci, engine_t * engine);
\r
89 extern void uci_send_isready (uci_t * uci);
\r
90 extern void uci_send_isready_sync (uci_t * uci);
\r
91 extern void uci_send_stop (uci_t * uci);
\r
92 extern void uci_send_stop_sync (uci_t * uci);
\r
93 extern void uci_send_ucinewgame (uci_t * uci);
\r
94 extern void uci_set_threads (uci_t * uci, int n);
\r
95 extern const char * uci_thread_option(uci_t * uci);
\r
96 extern bool uci_send_option (uci_t * uci, const char option[], const char format[], ...);
\r
97 extern void uci_close (uci_t * uci);
\r
98 extern void uci_clear (uci_t * uci);
\r
99 extern int uci_parse (uci_t * uci, const char string[]);
\r
101 #endif // !defined UCI_H
\r