https://github.com/voltamon/tictactoe-rust
This is a Tic Tac Toe game in Rust. It implements the Minimax Algorithm for decisive AI moves.
https://github.com/voltamon/tictactoe-rust
learning-rust minimax minimax-algorithm rust tic-tac-toe
Last synced: 2 months ago
JSON representation
This is a Tic Tac Toe game in Rust. It implements the Minimax Algorithm for decisive AI moves.
- Host: GitHub
- URL: https://github.com/voltamon/tictactoe-rust
- Owner: Voltamon
- License: mit
- Created: 2024-12-04T03:16:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T12:48:12.000Z (about 1 year ago)
- Last Synced: 2025-07-08T15:05:57.259Z (5 months ago)
- Topics: learning-rust, minimax, minimax-algorithm, rust, tic-tac-toe
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tic Tac Toe
This is a simple command-line implementation of the classic Tic Tac Toe game, written in Rust. The game allows a human player to play against a computer opponent that uses the minimax algorithm to determine the best moves.
[Discaimer] I am still learning rust. There may be scope for improvement in the code.
Features
- Human vs Computer gameplay
- Minimax Algorithm for AI moves
- Dynamic board display
Getting Started
To set up the project, follow these steps:
- Ensure you have Rust installed on your machine. If not, you can install it from rust-lang.org.
- Clone this repository:
- Navigate into the project directory:
- Compile and run the project:
git clone https://github.com/Voltamon/TicTacToe.git
cd Tic_Tac_Toe
cargo run -q --bin tictactoe.rs
Example Output