https://github.com/aonemd/tttoe
An ncurses based tic tac toe with multi-player and single-player AI mode
https://github.com/aonemd/tttoe
ai c ncurses
Last synced: over 1 year ago
JSON representation
An ncurses based tic tac toe with multi-player and single-player AI mode
- Host: GitHub
- URL: https://github.com/aonemd/tttoe
- Owner: aonemd
- License: gpl-3.0
- Created: 2018-08-27T21:37:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T06:31:58.000Z (almost 3 years ago)
- Last Synced: 2025-02-04T21:45:44.914Z (over 1 year ago)
- Topics: ai, c, ncurses
- Language: C
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```bash
$ 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](https://github.com/aonemd/ttt/blob/master/LICENSE).