aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console/voerbak.c19
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)