An ncurses based tic tac toe with multi-player and single-player AI mode
- You need to have ncurses on your system.
On Ubuntu, for example, you should run the following to install the library:
$ sudo apt-get install libncurses5-dev libncursesw5-dev
- Run
make
to build and run the binary
You can pass two command-line parameters to the binary:
- the first parameter is the size of the grid, for example, you can pass 4 to
play in a 4x4 sized grid:
./ttt 4
. Defaults to 3 - the second parameter is the game mode; 0 for two-player mode:
./ttt 3 0
, 1 for AI mode:./ttt 3 1
. Defaults to 0
See LICENSE.