Yahtzee

screenshot

Game Genre: Tabletop Dice Simulator
Number of Players: 1-6
Platform: Web Browser / Multiplatform
Playable demo: https://wizstaff.com/dice/
Inspired By: Yahtzee Tabletop Game

An offline multiplayer game for up to 6 players. Each player has 13 slots of points. Each turn one slot must be filled, but the amount the player can place there depends on the result of up to 3 throws allowed per player’s turn.

Rolling 5 of the same value (no matter what: can be 5 snake eyes or 5 six’s) is called “Yahtzee” and gives the player 50 points, provided that the 5x points slot is not filled yet. If the slot was filled with 0 already, your Yahtzee combo does not count. If you 50 points for first Yahtzee, every additional Yahtzee combo in the game gives you a 100 points bonus, no matter which slot you fill, plus all the points collected in that slot.

Other combinations similar to poker are: small and large straight (4 and 5 consecutive values) give 30 and 40 points correspondingly. Again, only if they are filled in the corresponding slots. Slots with particular value only count the sum of the dice with that value. For example: 2-2-2-4-6 in slot for 3 will give 0 points, but in slot for 2 will give 2 + 2 + 2 = 6 points.

Full House will give 25 points if you roll 3 dice of one value and 2 of another when you fill that slot. If you roll and never get a combo, there is a special Chance slot that will give you amount of points equal to the sum of your current rolled dice. If Chance is filled you still have to fill an available slot with zero. If sum of left slots reaches 63, that player gets additional 35 points bonus.

The slots 3x and 4x score the sum of all rolled values, but you can only fill them if the condition is met: at least 3 (and at least 4 for 4x) values must be the same.

This game features a hand-made 3d-physics engine written in Javascript by me from scratch. It uses WebGL to display graphics, with no game engine, only twgl.js - a thin wrapper to shorthand some common WebGL operations and data structures.