This project's goal is to implement concepts learnt in the course of week 4. These include working with constructors, prototypes, objects, properties and methods in JavaScript as well as using jQuery and DOM manipulation & traversal.
The project entails creating a game of Pig Dice which meets the following criteria:
- As a user, I want to roll the dice when it's my turn to play in the game.
- As a user, I want to see the score I get for each roll of the dice I make in the game.
- As a user, I want to see my cumulative score for each round I play in the game.
- As a user, I want the option to hold my score when I'm satisfied with the points I've gained in a round of playing.
- As a user, I want to be alerted when my dice rolls on number 1.
- As a user, I need a way to know which player has won the game, which means they have scored 100 points before the alternate player. It involves cloning a remote github repo which has the asset files for building the page. It also has a jpg of what the expected outcome of Delani Studio website should look like.
Behaviour | Input | Output |
---|---|---|
Checking instruction | Hovers over instructions | Shows instructions |
Setting player names | name values in forms | Displays P1, P2 names |
Dice roll | 1 | Current player turn over |
Dice roll | 2,3,4,5 or 6 | Adds cumulative score to the total |
Player hold | Hold | Current turn ends |
Win | Total score 100 | Displays alert of a win |
- jQuery 3.4.0 was used here.
- Bootstrap 4.
- Git knowledge on how to clone a repo.
- Not a must but a text editor like Atom or Visual Studio Code is preferred for navigating code.
- A web browser with console, e.g. Google Chrome.
- A working internet connection.
There no known bugs at the moment.
jQuery, HTML, CSS, and vanilla JavaScript have been used on this project.
To support me, you can contact me @philippokar@hotmail.co.uk
https://philipkariuki.github.io/delani-studio/
MIT © 2019 philipkariuki