Design Tic-Tac-Toe
Design Tic-Tac-Toe
Implement Tic-Tac-Toe for an n × n board. Two players, numbered 1 and 2, take turns placing marks.
Implement the following operation:
move(row, col, player): player ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
