2 stable releases
1.1.0 | Oct 10, 2022 |
---|---|
1.0.0 | Sep 13, 2022 |
#772 in Games
87KB
2K
SLoC
tactic
A terminal tic-tac-toe game with AI opponent, written in Rust.
Play tic-tac-toe (a.k.a. "noughts and crosses" or "Xs and Os") in the terminal against an AI opponent or another human player.
Features
-
Play against a friend, play against a computer, or pit two computer players against each other
-
Configurable computer player difficulty
-
Configurable game ending settings
-
Best of x number of games
-
Best of x number of won (non-draw) games
-
First player to x score
-
Unlimited (play until deciding to quit)
-
-
Reverse mode
- Instead of playing to get three of your pieces in a row, try to force the opposing player to place three of their pieces in a row
Installation instructions
-
Install the Rust programming language with rustup
-
Install tactic with
cargo install tactic
Development instructions
-
Install the Rust programming language with rustup
-
Clone the tactic repository locally
- e.g.
git clone https://github.com/generic-user1/tactic.git
- e.g.
-
Enter the local copy of the repository
- e.g.
cd tactic
- e.g.
-
Make changes to source code as desired
-
Run project with
cargo run
-
To improve game performance (especially with computer players), run in release mode
- e.g.
cargo run --release
- e.g.
-
Dependencies
As a user, you likely won't have to worry about these as cargo will take care of downloading and building them for you.
Dependencies
~1.7–9MB
~79K SLoC