Given a 2D integer arraymoveswheremoves[i] = [rowi, coli]indicates that theithmove will be played ongrid[rowi][coli]. returnthe winner of the game if it exists(AorB). In case the game ends in a draw return"Draw". If there are still movements to play return"Pending". You can assu...
Tic-tac-toe is a two-player game that children often play to pass the time. The game is usu...