Skip to content

๐ŸŽฒ Dice Game Project ๐ŸŽฎ - Roll the virtual die, accumulate scores, and aim to surpass 10 for victory! ๐Ÿ† Features random rolls, player turns, and responsive design. Clone the repo, open index.html, and let the dice decide your fate! ๐ŸŽ‰

Notifications You must be signed in to change notification settings

Mededdahby/diceGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dice Game

A simple two-player dice game implemented using HTML, CSS, and JavaScript.

Description

This project is a basic implementation of a two-player dice game. Players take turns rolling a virtual die and accumulate scores. The first player to reach a total score greater than 10 wins the game.

How to Play

  1. Click the "NOUVEAU" (New) button to start a new game.
  2. Click the "LANCE" (Roll) button to roll the virtual die.
  3. Click the "PASSE" (Pass) button to pass the turn to the other player.
  4. The game ends when one player's total score exceeds 10.

Features

  • Random Dice Rolls: The game uses JavaScript to simulate random dice rolls.
  • Player Turns: Players take turns rolling the dice, and the active player is indicated by background color changes.
  • Score Tracking: The scores for each player are displayed, and the game ends when a player's total score surpasses 10.
  • Responsive Design: The layout is designed to be responsive, providing a good user experience on different devices.

Usage

Clone the repository and open the index.html file in a web browser to play the game.

git clone https://github.com/your-username/dice-game.git
cd dice-game

images :

brave_CX9YDE85Tz brave_vii3cccH7m ![brave_o9bOVA9tjn](## Copyright

ยฉ 2024 Your Name. All Rights Reserved. https://github.com/Mededdahby/diceGame/assets/99148703/6f112694-f264-4070-9c0b-822670a3d414)

About

๐ŸŽฒ Dice Game Project ๐ŸŽฎ - Roll the virtual die, accumulate scores, and aim to surpass 10 for victory! ๐Ÿ† Features random rolls, player turns, and responsive design. Clone the repo, open index.html, and let the dice decide your fate! ๐ŸŽ‰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published