diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-16 18:26:09 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-16 18:26:09 +0100 |
commit | 084a41d7e667daa2c773a063ee3e42cd093323db (patch) | |
tree | 5c361370cdb75a3046fba7bf6fb1261e6ecd2bb5 | |
parent | 01fa26325d9532ac9d8eaec27eb582b37f039552 (diff) |
removed printHumanBoard from voerbak.c
-rw-r--r-- | console/voerbak.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/console/voerbak.c b/console/voerbak.c index 8aaf4e9..f0ecb4a 100644 --- a/console/voerbak.c +++ b/console/voerbak.c @@ -3,10 +3,6 @@ #include <memory.h> #include <stdbool.h> -#define DISC_A "\x1b[31mo\x1b[39m" -#define DISC_B "\x1b[34mo\x1b[39m" -#define EMPTY "\x1b[90m_\x1b[39m" - void printBoard(int board[], int width, int height) { for (int i = 0; i < width * height; i++) printf("%d", board[i]); @@ -14,21 +10,6 @@ void printBoard(int board[], int width, int height) { fflush(stdout); } -void printHumanBoard(int board[], int width, int height) { - for (int y = height - 1; y > -1; y--) { - for (int x = 0; x < width; x++) { - int val = board[x + y * width]; - char *print = - val == 0 ? EMPTY : - val == 1 ? DISC_A : - val == 2 ? DISC_B : - EMPTY; - printf("%s ", print); - } - printf("\n"); - } -} - int recursiveSolve(int board[], int width, int height, int pos, int checkFor, int direction, int currentLength) { int overflow = (pos % width) + direction; if (overflow == width || overflow == -1) |