Simple dice game.
Winning score is currently set to 20 for testing.
Tech: JS, CSS, HTML
Rules:
Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold":
If the player rolls a 1, they score nothing and it becomes the next player's turn. If the player rolls any other number, it is added to their turn total and the player's turn continues. If a player chooses to "hold", their turn total is added to their score, and it becomes the next player's turn. The first player to score 100 wins
Levels:
Bronze: Basic game works.
Silver: Basic styling. More DRY code.
Gold: Get rid of alerts. Indicate which player is the current player on UI and some sort of winning message on UI. Stop the game when a player wins. More styling and DRY code.
Platinum: Have a single player mode against the computer.
Approach: Started with basic layout of game. Added code for each button handler. Refactored code to make it more DRY. Styling.
Future plans: Redo project once we finish the React section. Get to platinum level.
Feedback focus: DRYr code. Styling tips.