Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 3.59 KB

README.md

File metadata and controls

86 lines (58 loc) · 3.59 KB

Pig Dice

JS Object and Branching Exercise for Epicodus, 6.17.2020

By Jeff Kim, Hannah Beinstein, & Ruthie Newman

Description

DETAILED DESCRIPTION

Specs

  1. Site should allow player to click a button to play the game Sample Input: User clicks Play/Roll button Sample Output: A random number from 1 to 6 is generated

  2. The total score of the rolled dice should be added to the player's current score Sample Input: Player clicks Roll button twice, rolls 2 and 4 Sample Output: Player's score increases from 0, to 2, to 6

  3. Player can end their turn manually Sample Input: Player clicks the Hold button Sample Output: Player's Current score is added to their Total score

  4. Player's turn ends automatically if they roll a 1 Sample Input: Player clicks Roll button and rolls a 1 Sample Output: Player's current score is set to 0 and their total score remains unchanged

  5. Player can end their turn and "pass the dice" to a second player Sample Input: Player clicks the End Turn button Sample Output: Player 2 can roll/hold/end turn

Setup/Installation Requirements

To use this site:

  1. Open your preferred browser.
  2. Navigate to https://jkbutserious.github.io/REPO-NAME.
  3. USER INSTRUCTIONS

You will receive output in the form of a range of numbers and strings.

To contribute to this project:

  1. Open your preferred browser.
  2. Navigate to https://github.com/jkbutserious/REPO-NAME.
  3. Log into or sign up for your GitHub account.
  4. Click the Fork button to copy the repository and all source code.
  5. From your forked repository, you can download or clone the repository, by clicking the Clone or download button.
  • To clone the repository in GitHub Desktop, click the Open in Desktop option
  • To download the repository, click the Download ZIP option, save the archive to your computer, and extract it to the folder of your choice
  1. Use your preferred code editor to edit index.html, styles.css, and/or scripts.js. Note: the following files are inclusions from popular code libraries and should not be edited:
  • bootstrap.css
  • bootstrap.css.map
  • jquery-3.5.1.js
  1. Save any changes you make in your code editor and use your preferred git solution to commit your changes.
  2. Push your changes to your forked repository.

Known Bugs

Initial Release

  • No known bugs

Support and contact details

To report any issues with this page or to contribute to this project, contact Jeff Kim at [email protected].

Technologies Used

This page was created using the following technologies:

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • JQuery

License

Copyright © 2020 Jeffrey Kim

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.