Generalized Tic-Tac-Toe

Design a two-player Tic-Tac-Toe game on an m × n board with a win condition of k consecutive marks horizontally, vertically, diagonally, or anti-diagonally.

Implement:

TicTacToe(int m, i...

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: