Skip to content

Villarrealized/tic-tac-toe-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

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, or exit to quit the game.
  • Type r, reset, or restart to start over.
  • Type l or toggle_layout to toggle between the numbered and blank layouts
  • Type c or toggle_color to show X's and O's colored or plain

Examples

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

About

A tic-tac-toe game written in Rust for a CLI.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages