2 player dice game
A 2 player dice game where the first person to 100 points win. Players will roll a 6 sided die. Players can roll how ever many times they like. That number is added to their current score pool. They can hold and pass to the next play. The current score will get added to their overall score. If they roll a 1 then their current score pool is reduced to 0 and it is the other players turn.
- Uses Math.random() to generate a number between 1 and 6.
- Events update css in win and reset conditions.
- Keeps track of scores for 2 players.
- Keeps track of a temporary score and an overall score.
Displays well on desktop browsers.
Demo: Check it out! | Code: GitHub