This site contains an a game called pig dice
This site is already linked to an index.html, bootstrap.css(4.4.1), styles.css, jQuery.js(3.4.1), and scripts.js.
Make sure you have git version control installed on your computer.
- click the green 'Clone or Download' button and copy the link / download the zip
- open terminal and type... or skip to the 2nd #3 if you downloaded the zip
Windows
cd desktop
Mac & linux
cd ~/Desktop
- in terminal type 'git clone {link to repository} '
git clone {link to repository}
- if you downloaded the zip then extract all onto your desktop
- navigate to the new folder that was created on your desktop
- select index.html
- right click on the file and select 'open with'
- select your preferred browser (works best with Chrome or Firefox)
- enjoy
Behavior | Input | Output |
---|---|---|
The user will be able to see each player's score | dice roll | player one = 12 & player two = 22 |
The program will have a dice roll button to determine a 1-6 outcome | 'mouse click' | '1-6' |
The program will award no points and pass the turn to the next player if a one is rolled | 1 | Pass turn |
The player can "hold" which ends the turn and adds their dice count to their running total | 5 | 17 |
The program will award victory to the first player to score 100 or more | score =>100 | Victory |
The program has a popup declaring which player emerged victorious | player's score exceeds 100 | player victory popup |
N/A - 4/8/2020
https://WiseFool92.github.io/pigdice https://tayphill13.github.io/Pig-Dice
Email: watkins92@gmail.com
Email: taylorphillips133@gmail.com
- HTML - Simple Scaffolding
- JavaScript - Used for interactivity in the page
- jQuery - Used to interact with the DOM
- Bootstrap 4.4 - Used for styling
-
-
source.unsplash.com will return a random image at a desired size by simply calling the size after the url followed by a '?' and a keyword. Example below
-
http://unsplash.it/500/500 - This will just return a random image the size of 500x500
-
This project is licensed under the MIT License
Copyright (c) 2020 Nathan Watkins-Hoagland & Taylor Phillips