Code Monkey home page Code Monkey logo

pig-dice's Introduction

Pig Dice

A gaming site to play pig dice, 8.23.2017

By Margaret Berry and John Parsons

Description

Each turn, a player repeatedly rolls a die. After each roll, the player decides whether to 'hold' or roll again. If a 1 is rolled, the player scores nothing for that turn, and it becomes the next player's turn. The first player to get 100 points wins. The app displays the current roll and total score for each player.

Specifications

Spec Input Output
Game will generate a random number between 1 and 6 User presses 'roll' 4
If the number is 1, the turn is ended and the total for the turn is zero User presses 'roll' 1 - Your turn is over.
If the player decides to hold, the turn score is added to the total. User presses 'hold' Total score: 16

Setup/Installation Requirements

Run the following commands in Terminal:

  1. $ git clone this repository
  2. $ cd pig-dice
  3. $ open index.html

Known Bugs

There are no known bugs at this time.

Project Goals

Practice writing JavaScript functions.

Future Features

Add some styling to the user interface.

Support and contact details

If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery

License

This software is licensed under the MIT license.

Copyright (c) 2017 Margaret Berry and John Parsons

pig-dice's People

Contributors

codemargaret avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.