Tic Tac Toe is played on a A and B. Player A always moves first and places an 'X' mark, while player B moves second and places an 'O' mark.
Players take turns placing their respective characters into any empty square on the board. The game concludes when a player places
Given a moves where moves[i] = [row_i, col_i] indicates that the row_i, col_i), return:
"A" if player A wins the game.
"B" if player B wins the game.
"Draw" if the game ends in a draw.
"Pending" if the game is still in progress.
Constraints:
moves.length
moves[i].length
row_i, col_i
There are no repeated elements on moves.
moves follow the rules of tic tac toe.
Tic Tac Toe is played on a A and B. Player A always moves first and places an 'X' mark, while player B moves second and places an 'O' mark.
Players take turns placing their respective characters into any empty square on the board. The game concludes when a player places
Given a moves where moves[i] = [row_i, col_i] indicates that the row_i, col_i), return:
"A" if player A wins the game.
"B" if player B wins the game.
"Draw" if the game ends in a draw.
"Pending" if the game is still in progress.
Constraints:
moves.length
moves[i].length
row_i, col_i
There are no repeated elements on moves.
moves follow the rules of tic tac toe.