Tic-tac-toe is a game played between two players on a 33 grid. In a turn, a player
Fantastic news! We've Found the answer you've been seeking!
Question:
You are given a tic-tac-toe board AA after a certain number of moves, consisting of symbols O, X, and underscore(_). Underscore signifies an empty cell.
if the position is reachable, and the game has drawn or one of the players won. if the position is reachable, and the game will continue for at least one more move. if the position is not reachable.Note:
Starting from an empty board, reachable position means that the grid is possible after a finite number of moves in the game where the players may or may not be playing optimally.The answer for each test case should be with respect to the present position and independent of the results in the further successive moves
Also, do mention a few of the test cases in the submission file as well.
Related Book For
Posted Date: