summaryrefslogtreecommitdiff
path: root/src/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.c')
-rw-r--r--src/board.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/board.c b/src/board.c
index a03fddd..88c7dff 100644
--- a/src/board.c
+++ b/src/board.c
@@ -160,3 +160,16 @@ enum player_color **scm_board_to_c_board(SCM scm_board) {
return board;
}
+
+void print_board(enum player_color **board) {
+ puts(" 0 1 2 3 4 5 6 7");
+
+ for (int row = 0; row < 8; row++) {
+ printf("%d ", row);
+
+ for (int col = 0; col < 8; col++) {
+ printf("%c ", board[row][col]);
+ }
+ printf("\n");
+ }
+}