Skip to content

HadyEssa/Dice-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice Game

This is a simple Dice Game built with HTML, CSS, and JavaScript. The game allows two players to roll a dice and accumulate points. The player who reaches 100 points first wins the game.

Features

  • Two-player game where each player takes turns to roll the dice.
  • Players accumulate points based on the dice rolls.
  • If a player rolls a 1, their current score for that turn is reset and the turn passes to the other player.
  • Players can hold their current score to add to their total score and pass the turn to the other player.
  • The first player to reach 100 points wins.

How to Play

  1. Roll the Dice: Click the "Roll" button to roll the dice.
  2. Hold the Score: Once you are satisfied with your score for the turn, click the "Hold" button to keep your points and pass the turn to the other player.
  3. Winning: The first player to reach 100 points wins the game.

Installation

To play the game locally on your computer:

  1. Clone this repository:
    git clone https://github.com/HadyEssa/Dice-game.git
  2. Open the project folder and launch the index.html file in your browser.

Technologies Used

  • HTML
  • CSS
  • JavaScript

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published