Git Product home page Git Product logo

pig-dice's Introduction

QUIZ BOARD

CREATED BY Duncan Kariuki


New Game Page to answer questions

Results Results displayed

Project Objectives

The objective of this project is to create an application, that lets two players roll a dice and displays the result.


Technologies used

This project has been written in programming languages, like HTML which is used to create the basic skeleton of the pages and CSS which is used to style it.This languages ore dependent on each other in order for a web page to appear fully backed. The logical part of the application is created out of javascript, which is used to collect user answers and then display their score.

1.CSS(Cascading style sheet)

Css is used to style there appearance of website on the web. Thus this project was a good exercise to help me understand how best to style a page. The project also tested my ability to use an external cascading style sheet for the whole project.

3.Indentation

This refers to the formatting of HTML and CSS. It is easy to read code that is well formatted and work on it on a later date than it is on one that is not. Thus the project tested my ability to apply this.

4.Use of version control

It is important that when collaborating or doing an independent project to be able to track the changes and revert to a previous stable state in case of the local copy being damaged.

5.Javascript/Jquery.

To use events to control when the logical part of the application is called.


specifiactions.

The following are the particulars that the application sets out to meet:

  1. The application should offer the users choice to play as player1 or player2.
  2. Give the user the ability to roll a dice.
  3. Calculate the final score by adding the value generated from rolling the dice.
  4. Inform the user when 1 is rolled and their score is 0, the pass the roll opportunity to the next player.
  5. clear the default score when player2 rolls
  6. Display the final score.
  7. Choose a winner when the score for either reaches 100.

User Requirements.

To use the application on the web follow the outlined steps:

  1. vist the following page (https://dun-njuguna.github.io/Pig-Dice/).
  2. Roll the dice
  3. As you roll a message will be displayed declaring the winner when the sore reaches 100.

Running/Installation instructions

To run this project on your local machine, simply download it navigate to the folder and open the index.html file with any web browser(preferably chrome).


Future features

Will add the ability for the application to tell the user which questions he or she has passed or failed at.

Known bugs

As of witting, there are no Known bugs.

Link to live site

Here is a link to the live site on git-hub pages(https://dun-njuguna.github.io/Pig-Dice/)

Support or contribution instructions

If you require to use or make any changes to this project, then reach out to me on the email below.

Contact information

For any questions or suggestions please feel free to reach out to me at [email protected]


Copyright and license information

MIT License

Copyright (c) [2018] [Duncan Kariuki]

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.

pig-dice's People

Contributors

dun-njuguna avatar

Watchers

James Cloos avatar

Forkers

careyfrancis

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.