https://github.com/anastasios3/advanced-dice-game
A fun web-based dice game for two players, aiming to reach 100 points first. Built with HTML, CSS, and JavaScript.
https://github.com/anastasios3/advanced-dice-game
css fundementals javascript simple-game
Last synced: over 1 year ago
JSON representation
A fun web-based dice game for two players, aiming to reach 100 points first. Built with HTML, CSS, and JavaScript.
- Host: GitHub
- URL: https://github.com/anastasios3/advanced-dice-game
- Owner: Anastasios3
- Created: 2024-05-14T13:52:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T10:17:18.000Z (about 2 years ago)
- Last Synced: 2024-06-19T20:18:16.760Z (about 2 years ago)
- Topics: css, fundementals, javascript, simple-game
- Language: CSS
- Homepage: https://anastasios3.github.io/Advanced-Dice-Game/
- Size: 390 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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](https://anastasios3.github.io/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!