 |
|
|
|
|
Rules |
|
|
|
|
Given the following parameters for input: length and array string return the winner.
|
|
|
|
|
The length of a side of a tic tac toe board (e.g. can be 5, for a 5x5 game). The maximum size is 100x100.
|
|
|
|
|
A 2 dimensional array converted to string representing the tic tac toe board. The spaces are filled with X, O or blanks.
|
|
|
|
|
Result can be one of the following strings:
- WinnerX: A winner X (there are N X's in a row, where N is the length of a side -- can be on a row, column or diagonal).
- WinnerO: A winner O.
- CatsGame: A cats game (no winner and no spaces left): None of the above.
|
|
|
|
 |
|
|
 |
|
NxN Tic Tac Toe board analyzer |
Input |
|
|
Result
And the Winner is... Goes here...
|
|
Visualizer
* Only available for board size smaller than 10
|
|
|
|
 |
|
|