Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 729 Bytes

README.md

File metadata and controls

48 lines (36 loc) · 729 Bytes

Tic Tac Toe aka knots and crosses in Rust

This is an educational project for me to learn Rust with.

Setup

git clone https://github.com/InDieTasten/tictactoe-rs
cd tictactoe-rs
cargo build

Playing

Hosting a match using play

Usage from cargo run -- play --help

Usage: tictactoe-rs play <X> <O>

Arguments:
  <X>  [possible values: local, ai]
  <O>  [possible values: local, ai]

Options:
  -h, --help     Print help
  -V, --version  Print version

Examples

Local player vs local player

cargo run -- play local local

Local player vs AI

cargo run -- play local ai

AI vs AI

cargo run -- play ai ai