From ea0a6ed49c372d3bd5bbccb4304b33506b69ca85 Mon Sep 17 00:00:00 2001 From: ninya9k <> Date: Sun, 12 Nov 2023 11:24:27 +0000 Subject: [PATCH] delete commented code --- uttt.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/uttt.c b/uttt.c index 1f75b0c..e3f42ee 100644 --- a/uttt.c +++ b/uttt.c @@ -87,23 +87,6 @@ void ut_show(const struct ut_state *state) { play_board_row = state->playBoard / 3; play_board_col = state->playBoard % 3; } - /*for(int i = 0; i < 3; i++) - { - putchar(' '); - for(int j = 0; j < 3; j++) - { - printf("%d "); - } - } - for(int br = 0; br < 3; br++) - { - for(int r = 0; r < 3; r++) - { - }for(int bc = 0; bc < 3; bc++) - { - - } - }*/ printf(" 012 345 678\n"); for(int y = 0; y < 9; y++) { @@ -161,11 +144,7 @@ bool getpos(const struct ut_state *state, int *x, int *y) { return false; if (sscanf_result != 2) continue; - /* - if ( - *x >= 0 && *x < 9 && *y >= 0 && *y < 9 - && board->tiles[*y][*x] == '\0' - ) */ break; + break; } return true; }