DrShahinstein / yew-nim-game

nim-game implementation using yew.rs

Home Page:https://yew-nim-game.netlify.app/

Repository from Github https://github.comDrShahinstein/yew-nim-gameRepository from Github https://github.comDrShahinstein/yew-nim-game

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

About

nim-game implementation using yew.rs

https://yew-nim-game.netlify.app/

License:GNU General Public License v3.0


Languages

Language:Rust 81.5%Language:CSS 12.4%Language:HTML 3.5%Language:JavaScript 2.6%