Skip to content

sarahpetit54/Dice-Game

Repository files navigation

Dice-Game 🎲🎲

Rolling dice game for 2 players 👥

Description

Practice project for DOM manipulation and events fundamentals. Play here: https://dice-game-by-sarah.netlify.app

Main language used: JAVASCRIPT.

Rule of the Game

Each turn, a player rolls a dice and can decide to hold the score and change turn or addup with another roll.

If the player rolls a 1, their current score gets zeroed and the other player takes turn. If the player rolls any other number, it is added to their current score and the player's turn continues. If a player chooses to "hold" the current score, their turn total is added to their score and the other player takes turn. The first player to score 10 points wins.

Languages

HTML5, CSS3, Javascript

Pig Game Start Pig Game Win