From ee6ba0c30a9632bc6a3f043173e9bf841592c39e Mon Sep 17 00:00:00 2001 From: ninya9k <> Date: Sun, 12 Nov 2023 12:25:31 +0000 Subject: [PATCH] debug board view --- uttt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uttt.c b/uttt.c index d4c529c..7e77786 100644 --- a/uttt.c +++ b/uttt.c @@ -182,6 +182,12 @@ int main(int *argc, char **argv) { while (true) { int x, y; ut_show(&state); + for (int j = 0; j < 3; j++) { + for (int i = 0; i < 3; i++) { + putchar(state.boards[j][i]); + } + putchar('\n'); + } bool ok = getpos(&state, &y, &x); if (!ok) {continue;} int err = ut_move(&state, &state, x, y);