From 734739bbccff81a9485a8cd8abae455fc900b4a4 Mon Sep 17 00:00:00 2001 From: fdai7775 Date: Fri, 2 Feb 2024 12:13:27 +0000 Subject: [PATCH] defined BOARD SIZE --- src/main/c/GameTic_Tac_Toe/tictactoe.c | 1 - src/main/c/GameTic_Tac_Toe/tictactoe.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/c/GameTic_Tac_Toe/tictactoe.c b/src/main/c/GameTic_Tac_Toe/tictactoe.c index be7be8a..c6b9659 100644 --- a/src/main/c/GameTic_Tac_Toe/tictactoe.c +++ b/src/main/c/GameTic_Tac_Toe/tictactoe.c @@ -1,6 +1,5 @@ #include -const int BOARD_SIZE = 3; char board[3][3] = {{'1', '2', '3'}, {'4', '5', '6'}, {'7', '8', '9'}}; diff --git a/src/main/c/GameTic_Tac_Toe/tictactoe.h b/src/main/c/GameTic_Tac_Toe/tictactoe.h index 67f34cb..759dbea 100644 --- a/src/main/c/GameTic_Tac_Toe/tictactoe.h +++ b/src/main/c/GameTic_Tac_Toe/tictactoe.h @@ -1,6 +1,8 @@ #ifndef TICTACTOE_H #define TICTACTOE_H +#define BOARD_SIZE 3 + int isValidMove(int choice); char checkLine(char a, char b, char c); void start_tictactoe();