aonemd / tttoe

An ncurses based tic tac toe with multi-player and single-player AI mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tttoe

An ncurses based tic tac toe with multi-player and single-player AI mode

Build

  • 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

Modes

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

License

See LICENSE.

About

An ncurses based tic tac toe with multi-player and single-player AI mode

License:GNU General Public License v3.0


Languages

Language:C 98.8%Language:Makefile 1.2%