diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2022-12-07 15:20:01 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2022-12-07 15:20:01 -0800 |
| commit | c57fdac8fb91a29205bda4a8d8a6f91f4c1ec172 (patch) | |
| tree | 23013d55fac444edeb12f60591c30537a1b3173e /chesshelpers.h | |
| parent | f7a3feaacdab2f198c665ee11ff14a63ac84718e (diff) | |
fixed check detection. changed all board[8][8] arguments to int**
Diffstat (limited to 'chesshelpers.h')
| -rw-r--r-- | chesshelpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
