Dice game HTML/CSS/JavaScript
Pig Game is a competitive dice game written in javascript. This is project is part of a JavaScript lesson series the CSS and HTML were provided for this project.
Motivation:
This project is an exercise in the usage of multiple JavaScript tools taught in the course.
Usage:
Set "Total" value to the goal score a player must reach.
Press "New Game" to initiate the game.
Press "Roll Dice" to cast dice.
Press "Hold" to bank to the round score to the global score.
Rules:
Player presses "Roll Dice" button to cast two dice. The dice rolls are added to players round score. The player can choose to roll again or press "Hold" button to bank the round score to global score. first player to reach set total score WINS!
There is a catch. A dice roll of "1" resets round score to zero and ends the player's turn.
Screenshot:
Tech:
CSS
HTML
JavaScript
Credits:
Author:Aaron Beach
Udemy course: The Complete Javascript Course 2019. Author: Jonas Schmedtmann