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
- 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
- Then build with cargo
cargo build --release
cargo run
cargo test