GithubHelp home page GithubHelp logo

iankabugi / pig-dice Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 111 KB

This is a website with a pig-dice game functionality

Home Page: https://iankabugi.github.io/Pig-dice/

HTML 37.93% CSS 23.65% JavaScript 38.42%

pig-dice's Introduction

Pig Dice

This web app was created to allow two players to play a game of dice where one rolls twice then hits 'hold' to change turns, and the first participant to get to 100 wins! If a value of 1 is rolled by the die generator, then the respective player's turn is immediately over and their round total is 0. Date: 17th December 2018 By: Ian Kabugi

Description

The game can accommodate two players where each get two rolls of the dice before hitting 'Hold' button to let the other player take their turn.If either of the players roll 1, then their turn is over and the should let the next player roll his die.

website url: https://iankabugi.github.io/Pig-dice/

Setup/Installation Requirements

  • clone this repo :
  • If you roll a 1 at any point, you let the other player play regardless of number of times you've rolled(including first roll).
  • The first player with total score that is 100 or more wins!

Known Bugs

There are no known bugs at the moment

Behaviour Driven Development

Behaviour Specification
To participate click player 1
2.Player can roll die and each time it adds the value to the total score and records it If 1 is rolled, the dice roll is 0.
3.Alert the winner The first player whose tally raeches 100 wins.
Refresh game refreshes the page

Technologies Used

  • HTML was used in making the skeleton of the website.
  • CSS was used in styling the webpage.
  • Javascript was used in making the game responsive.
  • Git and Github were used as my local and online repositories respectively.

Support and contact details

License

MIT License

Copyright (c) [2018] [Ian Kabugi]

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 NON-INFRINGEMENT. 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.

pig-dice's People

Contributors

iankabugi avatar

Stargazers

 avatar

Watchers

James Cloos 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.