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