17 enum parse_code
gtp_parse(struct board
*b
, struct engine
*e
, struct time_info
*ti
, char *buf
);
18 void gtp_reply(int id
, ...);
19 bool gtp_is_valid(char *cmd
);
21 #define is_gamestart(cmd) (!strcasecmp((cmd), "boardsize"))
22 #define is_reset(cmd) (is_gamestart(cmd) || !strcasecmp((cmd), "clear_board") || !strcasecmp((cmd), "kgs-rules"))
23 #define is_repeated(cmd) (strstr((cmd), "pachi-genmoves"))