summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2022-12-07 15:20:01 -0800
committerKai Stevenson <kai@kaistevenson.com>2022-12-07 15:20:01 -0800
commitc57fdac8fb91a29205bda4a8d8a6f91f4c1ec172 (patch)
tree23013d55fac444edeb12f60591c30537a1b3173e /console.c
parentf7a3feaacdab2f198c665ee11ff14a63ac84718e (diff)
fixed check detection. changed all board[8][8] arguments to int**
Diffstat (limited to 'console.c')
-rw-r--r--console.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console.c b/console.c
index 7eed8ce..19e2a38 100644
--- a/console.c
+++ b/console.c
@@ -5,7 +5,7 @@
#include "chesshelpers.h"
#include "console.h"
-void draw_board(int board[8][8]) {
+void draw_board(int** board) {
printf(" A B C D E F G H\n");
int tileColor = 0;
for(int r = 0; r < 8; r++) {
@@ -103,4 +103,3 @@ void warn_user(char* message) {
while(getchar() != '\n');
getchar();
}
-