diff --git a/src/main/c/GameTic_Tac_Toe/tictactoe.c b/src/main/c/GameTic_Tac_Toe/tictactoe.c index e367101..245af28 100644 --- a/src/main/c/GameTic_Tac_Toe/tictactoe.c +++ b/src/main/c/GameTic_Tac_Toe/tictactoe.c @@ -10,7 +10,7 @@ const char PLAYER_O = 'O'; void reset_board(){ for(int i = 0; i < BOARD_SIZE; i++){ - for(int j = 0; j < BOARD_SIZE; y++){ + for(int j = 0; j < BOARD_SIZE; j++){ board[i][j] = j * BOARD_SIZE + i + 1; } }