summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2021-07-25 23:49:20 -0400
committerRobby Zambito <contact@robbyzambito.me>2021-07-25 23:49:20 -0400
commitf590189d63bac985c2738c63fc79a03f6ced1126 (patch)
treee622f773a23ae358be0b4c93bed10feaa2ab92df /src
parentb46f8516f095f5a02a408f1eff8058331849f6c9 (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 'src')
-rw-r--r--src/print_board.c2
1 files changed, 1 insertions, 1 deletions
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++) {