8000 GitHub - uhpoler/DiceGame: This is a DiceGame for two players
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

uhpoler/DiceGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Display

dice-display

Win screen

dice win screen

About

This is a DiceGame for two players

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0