Skip to content
/ tttoe Public

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

License

Notifications You must be signed in to change notification settings

aonemd/tttoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published