The goal of tic-tac-toe is to be the first player to place 3 of your marks in a horizontal, vertical, or diagonal line.
When it is your turn, enter the number of the cell you wish to mark.
- Type
q,quit, orexitto quit the game. - Type
r,reset, orrestartto start over. - Type
lortoggle_layoutto toggle between the numbered and blank layouts - Type
cortoggle_colorto show X's and O's colored or plain
O Wins X Wins Draw
| | | | | |
O | | X | | O O | X | O
___|___|___ ___|___|___ ___|___|___
| | | | | |
X | O | X X | X | X O | X | O
---|---|--- ---|---|--- ---|---|---
| | O | | O X | O | X
| | | | | |
Download the repo and cargo run to play the game, or download the binary from the releases page.
$ chmod +x tic-tac-toe
$ ./tic-tac-toe
