Given a board, return true if it is possible to reach this board state during a valid game, or false otherwise.
The game is played according to the following rules:
Players take turns placing characters on the board, where the first player always plays 'X' and the second player always plays 'O'.
Characters can only be placed in empty spaces, which are represented by ' '.
The game ends immediately when three identical non-empty characters align in any row, column, or diagonal, or when all
No moves can be made once the game has ended.
Constraints:
board.length
board[i].length
board[i][j] is either 'X', 'O', or ' '.
Given a board, return true if it is possible to reach this board state during a valid game, or false otherwise.
The game is played according to the following rules:
Players take turns placing characters on the board, where the first player always plays 'X' and the second player always plays 'O'.
Characters can only be placed in empty spaces, which are represented by ' '.
The game ends immediately when three identical non-empty characters align in any row, column, or diagonal, or when all
No moves can be made once the game has ended.
Constraints:
board.length
board[i].length
board[i][j] is either 'X', 'O', or ' '.