Skip to content

aesadin/pig-dice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pig Dice

Activity for Epicodus
By Peter Grimm, Allison Sadin, Megan Hepner 05.29.2020

Description

A page that plays pig dice, created as an exercise to practice with constructors, prototypes, objects, properties, methods, jQuery and DOM manipulation and traversal.

Specifications

Behavior Input Output
If start game is pressed, starts a new game, activates player 1 turn click start game
A player can roll the dice and get back a value between 1 and 6 click roll 3
If the value is between 2 and 6, it gets added to turn total 3
If the value is 1, add zero to total score, switch player turn 0
If the player clicks hold, add turn total to score, switch player turn click hold add value to score
If a player score reaches 100, player wins, game is over 100 game over

Setup/Installation Requirements

  • Clone this repository
  • Browse to the pig-dice folder
  • Open index.html in a browser of your choice

Technologies Used

HTML
CSS
Bootstrap
jQuery Javascript

Legal

Copyright (c) 2020, Peter Grimm, Allison Sadin, Megan Hepner
License: MIT This software is licensed under the MIT license.

About

A dice game. This game is 2 player, or 1 player against the computer. The winner is the first to reach 21, if the user goes over 21, they automatically lose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 74.0%
  • HTML 21.9%
  • CSS 4.1%