An open API service indexing awesome lists of open source software.

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.

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:



  1. Ensure you have Rust installed on your machine. If not, you can install it from rust-lang.org.

  2. Clone this repository:

  3. git clone https://github.com/Voltamon/TicTacToe.git

  4. Navigate into the project directory:

  5. cd Tic_Tac_Toe

  6. Compile and run the project:

  7. cargo run -q --bin tictactoe.rs


Example Output