https://github.com/drshahinstein/yew-nim-game
nim-game implementation using yew.rs
https://github.com/drshahinstein/yew-nim-game
minimax-algorithm nim-game rust wasm yew
Last synced: 5 months ago
JSON representation
nim-game implementation using yew.rs
- Host: GitHub
- URL: https://github.com/drshahinstein/yew-nim-game
- Owner: DrShahinstein
- License: gpl-3.0
- Created: 2023-08-02T22:19:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T09:25:12.000Z (over 1 year ago)
- Last Synced: 2024-11-13T19:15:34.400Z (7 months ago)
- Topics: minimax-algorithm, nim-game, rust, wasm, yew
- Language: Rust
- Homepage: https://yew-nim-game.netlify.app/
- Size: 60.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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



## Installation
### Required
- [trunk](https://trunkrs.dev/)
1. `$ git clone https://github.com/DrShahinstein/yew-nim-game.git`
2. `[yew-nim-game]$ trunk serve`