From c57fdac8fb91a29205bda4a8d8a6f91f4c1ec172 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Wed, 7 Dec 2022 15:20:01 -0800 Subject: fixed check detection. changed all board[8][8] arguments to int** --- chesshelpers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chesshelpers.h') diff --git a/chesshelpers.h b/chesshelpers.h index 0f1de34..55a211a 100644 --- a/chesshelpers.h +++ b/chesshelpers.h @@ -10,9 +10,9 @@ typedef enum { king = 6, } piece_t; int in_board(vector_t position); -int is_empty(int board[8][8], vector_t position); -int is_color(int board[8][8], vector_t position, int color); +int is_empty(int** board, vector_t position); +int is_color(int** board, vector_t position, int color); char* get_readable_coords(vector_t position); -char* get_move_name(int board[8][8], vector_t origin, vector_t end); -int** clone_board(int board[8][8]); +char* get_move_name(int** board, vector_t origin, vector_t end); +int** clone_board(int** board); #endif -- cgit v1.3.1