diff options
Diffstat (limited to 'chesshelpers.h')
| -rw-r--r-- | chesshelpers.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chesshelpers.h b/chesshelpers.h index 55a211a..523505a 100644 --- a/chesshelpers.h +++ b/chesshelpers.h @@ -9,10 +9,16 @@ typedef enum { queen = 5, king = 6, } piece_t; +typedef struct BoardState { + int** pieces; + int blackKingHasMoved; + int whiteKingHasMoved; + int lastPawnMove; +} board_t; +board_t init_board(int** board); int in_board(vector_t position); 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, vector_t origin, vector_t end); -int** clone_board(int** board); #endif |
