Skip to content

This Game is built using HTML, CSS and JavaScript to learn the basic of language and understand the workflow of application.

Notifications You must be signed in to change notification settings

Prachi24599/Pig-Game

Repository files navigation

Pig-Game

Play this game from here - https://pig-game-pp.netlify.app/

Game Rules -

  1. You need 2 players to play this game. Starting player is set to player 1.

image

  1. Player 1 will roll a dice first. As many times the player 1 rolls dice, that sum will be stored in current value.

image

  1. If Player 1 holds this value, then that value will stored in total and current will again reset to 0 for player 1 and It will be turn of player 2 now.

image

  1. Player 2 will roll the dice and can hold the value.

image

  1. If before holding the value, the player gets one on dice then player will lost his turn and current value will be set to 0 as It wont be added in total.

image

  1. The Player wins the game whose total score becomes 100 first.

image

About

This Game is built using HTML, CSS and JavaScript to learn the basic of language and understand the workflow of application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published