summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/othello.h2
-rw-r--r--src/print_board.c2
2 files changed, 2 insertions, 2 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]);
diff --git a/src/print_board.c b/src/print_board.c
index 6624341..cea9b8e 100644
--- a/src/print_board.c
+++ b/src/print_board.c
@@ -2,7 +2,7 @@
#include "othello.h"
-void print_board(player_color board[8][8]) {
+void print_board(const player_color board[8][8]) {
puts(" 0 1 2 3 4 5 6 7");
for (int row = 0; row < 8; row++) {