Design and implement a Tic-Tac-Toe game class that supports playing moves on an n x n board.
1
and
2
.
move(row, col, player)
places the player's mark at
(row, col)
.
0
if there is no winner yet,
1
if player 1 wins,
2
if player 2 wins.
For n = 3:
move(0,0,1) -> 0
move(0,2,2) -> 0
move(2,2,1) -> 0
move(1,1,2) -> 0
move(2,0,1) -> 0
move(1,0,2) -> 0
move(2,1,1) -> 1
(player 1 completes bottom row)