Skip to content
A simple Tic Tac Toe engine written in Rust
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

A simple Tic Tac Toe engine written in Rust

This tictactoe engine written in Rust and uses an minimax implementation.

To build and run the program:

cd src
rustc main.rs

./main           <= For Linux and macOS
main.exe       <= For Windows

Format:

  • First input (1: Player, -1: Engine) indicates who moves first
  • Later inputs (0 - 8) indicate positions
  • Output who wins (1: Player, -1: Engine, 0: Tie)

Positions:

0 1 2
3 4 5
6 7 8
You can’t perform that action at this time.