gtp.c: Call new genmoves function and send binary stats
[pachi.git] / gtp.h
blob296abf0da40956a07f5996d1c454f1a89dc48a61
1 #ifndef ZZGO_GTP_H
2 #define ZZGO_GTP_H
4 struct board;
5 struct engine;
6 struct time_info;
8 enum parse_code {
9 P_OK,
10 P_NOREPLY,
11 P_DONE_OK,
12 P_DONE_ERROR,
13 P_ENGINE_RESET,
14 P_UNKNOWN_COMMAND,
17 enum parse_code gtp_parse(struct board *b, struct engine *e, struct time_info *ti, char *buf);
18 void gtp_prefix(char prefix, int id);
19 void gtp_flush(void);
21 #define is_gamestart(cmd) (!strcasecmp((cmd), "boardsize"))
22 #define is_reset(cmd) (is_gamestart(cmd) || !strcasecmp((cmd), "clear_board") || !strcasecmp((cmd), "kgs-rules"))
24 #endif