Yahtzee in JavaScript

Return to demos index page

Share on Facebook Tweet about this on Twitter Post about this on Treads
Share message
Join our Discord Share on LinkedIn Share on Reddit pinterest Email this to someone

Information:
This is something I'd been thinking about for a while. And since I had a little extra time what with the current shutin going on, I decided it was time to just go ahead and do it.

This is a fully playable game, written entirely in vanilla JavaScript. No frameworks or plugins. It really doesn't need any of that stuff.

The Rules.

Upper section How to Score Score
Aces Count and add only Aces
Twos Count and add only Twos
Threes Count and add only Threes
Fours Count and add only Fours
Fives Count and add only Fives
Sixes Count and add only Sixes
Sub Total -->
Bonus If total score is > 63
Total -->
Lower section How to Score Score
3 of a kind Add total of all dice
4 of a kind Add total of all dice
Full House Score 25
Sm straight (seq of 4) Score 30
Lg straight (seq of 5) Score 40
YAHTZEE (5 of a kind) Score 50
Chance Total of all dice
Upper total -->
Lower total -->
FINAL -->
 

Gameplay

You get 3 roles per turn
You can hold as many dice as you like.
You can roll dice that were previously held
You can score you turn at any time
After 3 rolls, you must score your turn
Yahtzee can only be scored once. Don't be greedy

bottom corner