Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.24 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.24 KB

yew-nim-game

A fundamental web assembly app using rust and yew.rs implementing minimax algorithm for counter moves.

Game Logic

  • 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.

Screenshots

screenshot_1 screenshot_2 screenshot_3 screenshot_4

Installation

Required

  1. $ git clone https://github.com/DrShahinstein/yew-nim-game.git
  2. [yew-nim-game]$ trunk serve