Skip to content

amritagg/Pig-Game

Repository files navigation

Pig-Game

This is a web app build using HTML, CSS and JAVASCRIPT.

This project consists of only frontend.

I have used HTML for designing the layout of the game CSS is used to add colors to the game JavaScript is used to add functionality to the app like button press, dice show/hide, score calculation.

PIG1

About the GAME

This game can be played by 2 users. First the user need to input the high score which they want to end the game First user will get the turn and he can either ROLL or HOLD the score. If the player rolles then the dice will be rolled and a random number between 1 to 6 will appear

PIG2

All the current score will be stored in current.

When the player will hit HOLD then current value will be added to final score and the turn of dice will be given to other player

If the player gets 1 as the number then his/her current score will turn zero and the turn of dice will be given to other player.

First person to reach the maximum score wins the game!!!

PIG3

As soon as a players wins the game then no-one can roll the dice.

Players can rematch using NEW GAME button

THANK YOU!!!

About

Just a simple frontend app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published