From 2e312017ef300b4680f5a7685a1905a4e7e52962 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 3 Oct 2009 23:46:13 +0200 Subject: [PATCH] GTP: board_print() compilation fixes --- gtp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtp.c b/gtp.c index 59ede34..69c920c 100644 --- a/gtp.c +++ b/gtp.c @@ -111,7 +111,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) } else if (!strcasecmp(cmd, "clear_board")) { board_clear(board); if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); gtp_reply(id, NULL); } else if (!strcasecmp(cmd, "komi")) { @@ -120,7 +120,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) sscanf(arg, "%f", &board->komi); if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); gtp_reply(id, NULL); } else if (!strcasecmp(cmd, "play")) { @@ -144,7 +144,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) gtp_error(id, "illegal move", NULL); } else { if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); gtp_reply(id, NULL); } @@ -159,7 +159,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) if (DEBUGL(1)) fprintf(stderr, "playing move %s\n", str); if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); gtp_reply(id, str, NULL); free(str); coord_done(c); @@ -183,7 +183,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) next_tok(arg); } while (*arg); if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); gtp_reply(id, NULL); /* TODO: Engine should choose free handicap; however, it tends to take @@ -198,7 +198,7 @@ gtp_parse(struct board *board, struct engine *engine, char *buf) gtp_prefix('=', id); board_handicap(board, stones, stdout); if (DEBUGL(1)) - board_print(b, stderr); + board_print(board, stderr); printf("\n\n"); fflush(stdout); } else if (!strcasecmp(cmd, "final_score")) { -- 2.11.4.GIT