An open API service indexing awesome lists of open source software.

https://github.com/uhpoler/dicegame

This is a DiceGame for two players
https://github.com/uhpoler/dicegame

css3 html5 javascript

Last synced: 6 months ago
JSON representation

This is a DiceGame for two players

Awesome Lists containing this project

README

          

# DiceGame

This is a DiceGame for two players, I created it for practicing DOM and Events fundamentals.

- When a player clicks the 'ROLL' button, the game rolls a dice, generating a number between 1 and 6.
- Each roll adds to the player's 'CURRENT' score.
- When the player presses the 'HOLD' button, all current points are transferred to the 'SCORE' section.
- The first player to reach 100 points wins the game.

WARNING: If a player rolls a '1', all their current points are lost, and the next player takes their turn.

## Flowchart
![pig-game-flowchart](https://github.com/user-attachments/assets/3767a66e-3a97-49cf-ad00-79e11093a80f)

## Display
![dice-display](https://github.com/user-attachments/assets/937489dc-4fcf-48fe-8801-48784d70c79e)

## Win screen
![dice win screen](https://github.com/user-attachments/assets/1bf53734-e57d-44d4-b107-c7aa6dcdf742)