Skip to content

A fun web-based dice game for two players, aiming to reach 100 points first. Built with HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

Anastasios3/Advanced-Dice-Game

Repository files navigation

image

Advanced Dice Game

Welcome to the Advanced Dice Game! This project is a simple, interactive web-based game built using HTML, CSS, and JavaScript.

About This Project

The Advanced Dice Game is designed to simulate a fun and engaging dice game where players can roll dice and compete to reach a target score. The game provides a practical example of DOM manipulation, event handling, and basic game logic implementation in JavaScript.

Features

  • Player Turns: Alternate turns between two players.
  • Dice Rolling: Roll the dice to accumulate points.
  • Hold Feature: Save your current score and switch turns.
  • Winning Condition: First player to reach the target score wins.
  • Reset Game: Restart the game at any time.

Live Demo

Check out the live version of the game here: Advanced Dice Game

How to Play

  1. Objective:

    • The goal of the game is to be the first player to reach 100 points.
  2. Gameplay:

    • The game is played between two players, alternating turns.
    • On each turn, a player rolls a dice as many times as they wish. Each result gets added to their current turn's score.
  3. Rolling a 1:

    • If the player rolls a 1, they lose all points accumulated in their current turn, and it's the next player's turn.
  4. Hold:

    • The player can choose to hold (end their turn) at any time. When a player holds, their current turn's score is added to their total score, and it's the next player's turn.
  5. Winning the Game:

    • The first player to reach or exceed 100 points on their total score wins the game.
  6. New Game:

    • Players can click the "New Game" button to reset the scores and start a new game.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript

Contact

For any inquiries or job opportunities, feel free to reach out.


Feel free to modify this README file as needed. Let me know if you need any further adjustments or additions!

About

A fun web-based dice game for two players, aiming to reach 100 points first. Built with HTML, CSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published