https://github.com/uberfuzzy/g-dice
react recreation of a dice game
https://github.com/uberfuzzy/g-dice
Last synced: about 2 months ago
JSON representation
react recreation of a dice game
- Host: GitHub
- URL: https://github.com/uberfuzzy/g-dice
- Owner: uberfuzzy
- Created: 2023-09-15T16:57:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-25T06:40:13.000Z (over 1 year ago)
- Last Synced: 2024-01-25T07:35:47.662Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://uberfuzzy.github.io/g-dice/
- Size: 828 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What
A dumb little react implentation of a game played with dice.
Its a semi-clone of a physical dice game based on building a gelatinous cube, but I'm sure I've also seen it elsewere as some sort of generic game to play with d6.
I make no claim to own this game, or its concept. This is entirely a programming mechanics playground.
* Deployed https://uberfuzzy.github.io/g-dice/
* HEAD https://magenta-taiyaki-f74a33.netlify.app/# Why
Wanted to play around with some React (outside of Gatsby) to help learn and strengthen some logical (mis)assumptions I had. Also was bored.
Much like playing "war" with a deck of cards, there is no skill involved, and a pure implentation of mechanics. I like using those as programming exercise, because you know what the endgoal is supposed to do.
# Game Rules
1. Each player starts with 6 dice (d6).
2. Everyone rolls at the same time.
3. As an atomic action, everyone:
4. give your `1`s to the player on your left
5. move your `3`s to your cube pile.
6. give your `6`s to the player on your right.
7. If one or more player completes their cube (stack of >=8) at the same time, the player with the LEAST unstacked cubes wins.
8. If at any point no one has any unstacked cubes, everyone is eaten, and everyone loses.