Skip to content

CieriA/minimax-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe with Rust

A tictactoe implementation on the terminal (minimax algorithm), written in Rust.

Features

  • Grid display on the terminal
  • Bot or pass-to-play
  • 'X'/'O' players

Requirements

  • Rust (stable) — install via rustup

Building the project

Clone the repository and build it in release mode:

git clone https://github.com/CieriA/minimax-tictactoe
cd minimax-tictactoe
cargo build --release

Running the game

cargo run --release

Controls

  • 1-9 -> to index the board from the terminal

Development notes

This project uses the following crates:

  • colored

Docs

To build the documentation locally:

cargo doc --open

License

This project is licensed under the ISC License. For more info see the LICENSE file.

About

Learning minimax algorithm with tic-tac-toe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages