diff options
author | Robby Zambito <contact@robbyzambito.me> | 2021-07-25 23:49:20 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2021-07-25 23:49:20 -0400 |
commit | f590189d63bac985c2738c63fc79a03f6ced1126 (patch) | |
tree | e622f773a23ae358be0b4c93bed10feaa2ab92df /include | |
parent | b46f8516f095f5a02a408f1eff8058331849f6c9 (diff) |
Made the print function take a const for the board parameter.
We wont need to mutate the board in the print function.
Diffstat (limited to 'include')
-rw-r--r-- | include/othello.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/othello.h b/include/othello.h index aed7302..c7ed718 100644 --- a/include/othello.h +++ b/include/othello.h @@ -16,4 +16,4 @@ bool is_valid_move(const player_color board[8][8], bool has_valid_moves(const player_color board[8][8], const player_color current_player); char game_loop(player_color board[8][8]); -void print_board(player_color board[8][8]); +void print_board(const player_color board[8][8]); |