Skip to content

donedgardo/tic-tac-toe-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe in Rust

CLI PLAY

To play against the ai run inside root directory:

./target/release/rust-tic-tac-toe

For different options:

./target/release/rust-tic-tac-toe --help

Build

  1. Install rust-up to setup env with rust builder and cargo dependency manegement Recommended:
brew install rustup-init

Or

macOS, Linux or Unix-like OS:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  1. Then build with cargo
cargo build --release

Build & Run

cargo run

Test

cargo test