This is a simple fun project designed to test the minimax algorithm in Rust
Tic Tac Toe is a popular game and its straightforward rules and manageable complexity make it a good starting point for exploring decision-making algorithms in games.
- Clone the repo
git clone https://github.com/Arthur-Jacobina/tic-tac-toe-rs.git
cd tic-tac-toe-ai
- Build the project
cargo build
- Run the game
cargo run
- Modify main as you want You can either play as a human or make Computer X Computer matches (I do not recommend it though haha)
The minimax algorithm in player.rs
evaluates all possible moves recursively to maximize the AI's chances of winning while minimizing the opponent's chances.