A Nim game in Rust.
This is a substraction variant of the Nim game in Rust (Nim on Wikipedia).
This is a human vs IA board game.
- At the start of each round, there are 21 sticks on the board.
- Human plays first.
The player removes 1, 2 or 3 sticks from the board.
Once removed, it's the other player's turn. The game continues until there are no more sticks on the board.
The player who takes the last stick wins the round.
Use cargo to build this project :
cargo build --release
./target/release/rusty-nim
Enjoy