Coder Social home page Coder Social logo

naisenyamungai / pigdice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13.87 MB

Pig Dice is a game that can be played by two player or 1 player and a computer. Find out more once you play in the link provided.

Home Page: https://github.com/naisenyamungai/PigDice

HTML 31.09% JavaScript 42.96% CSS 25.95%

pigdice's Introduction

Project Name

       PIG DICE GAME

Author

        [Naisenya Mungai](https://github.com/naisenyamungai)
        Student - Full Stack Developer(Java & Android) 

Project Description

A pig dice game to be played by 2 people. Find out more once you play!

Project Overview

Behavior Input Outcome
Player 1 inputs name and Player 2 inputs name, and clicks start button Player 1: / Player 2: / Click START Goes to game console
Player 1 clicks ROLL button Click ROLL button Dice rolls and number is generated
If Player 1 rolls any number other than 1, that roll is added to round total Roll = 2 Round total = 2
If Player 1 rolls a 1, no score is added and round for Player 1 ends Roll = 1 Round total = 2 / Total score = 2 / Player 2 begins
Repeat for Player 2 Roll = 1 Round total = 0 / Total score = 0 / Player 1 begins
When a player's total score reaches 100 or more, game ends and winner page shows Player 1 total score = 100 Winner page

Technologies Used

The application was created using below technologies;

  • HTML
  • CSS
  • JavaScript
  • BootStrap
  • JQuery

Known Bugs

No known Bugs at the moment

SetUp Instructions

Internet Connection is required for the following instructions to be executed

  • Open Chrome, Mozilla or any browser in your disposal.
  • Internet Connection is a must.
  • Search naisenyamungai on github.
  • Click on the active link on the Pig Dice repository.
  • No other downloads or plug-ins are required.
  • Play the game and enjoy
  • For any feedback on bugs and errors contact [email protected] or 0721635386.
  • Alternatively you can clone the project onto your local machine to have a sneak peak at the code used.

Rules of the game:

  • The game has 2 players, playing in rounds.
  • In each turn, a player rolls a dice as many times as they wish until they roll a 1 or click on Hold
  • If the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  • If the player rolls any number other than 1 and chooses to HOLD, their score is added up
  • If a player rolls any number(except 1) and chooses to roll then rolls a 1, all round score is lost
  • The first player to reach 100 points wins the game

Support and contact details

[email protected]

To access this webpage open below link

https://naisenyamungai.github.io/PIG-DICE-GAME/

MIT © Naisenya Mungai

pigdice's People

Contributors

naisenyamungai 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.