A fundamental web assembly app using rust and yew.rs implementing minimax algorithm for counter moves.
- Upon starting the game, you'll be presented with a row of Ferris crabs whose count varies between 15-21.
- The game is played between user, who represents the player, and computer acting as the opponent.
- User starts off by removing one or two crabs from the row as a beginning.
- Afterward, computer counters the player's move using the minimax algorithm.
- The game keeps continuing until a player removes the last crab(s), and the one who accomplishes this is declared the winner.
$ git clone https://github.com/DrShahinstein/yew-nim-game.git
[yew-nim-game]$ trunk serve