Skip to content
dice pig game JS DOM Winning 200 score 2 player
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.DS_Store
README.md
app.js
back.jpg
dice-1.png
dice-2.png
dice-3.png
dice-4.png
dice-5.png
dice-6.png
index.html
style.css

README.md

domgame

This is a JavaScript DOM game, each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold":If the player rolls a 1, they score nothing and it becomes the next player's turn. If the player rolls any other number, it is added to their turn total and the player's turn continues. If a player chooses to "hold", their turn total is added to their score, and it becomes the next player's turn. The first player to score 200 point wins.

Features: Vanilla JS DOM Manipulation Math Library JavaScript EventListener logical conditionals

Platforms: Vanilla JavaScript HTML5 CSS3 Photoshop

You can’t perform that action at this time.