Skip to content

Sayan-Maity/Pig-Dice-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pig-Dice-Game

License: MIT PRs Welcome Netlify Status

Pig Dice is a game of luck and intrigue where players roll a die until they get a one or choose to stop and bank their total. First player to bank 100 points wins

Author : Sayan Maity

GAME RULES :

  • The game has 2 players, playing in rounds
  • In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score
  • BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLOBAL score. After that, it's the next player's turn
  • The first player to reach 100 points on GLOBAL score wins the game

Game Preview

Built with

  • Frontend: Javascript
  • Version Control: Git
  • Hosting: Netlify, Github Pages

Setup and Installation

Fork and Clone this project. Make sure you have git installed. On the terminal, navigate to your workspace directory and run the game

Contributing

Pull requests are encouraged

Future Scope

  • The game rules can be included within the webpage itself to help users understand the game
  • UI part can be improved by adding some animations
  • Instead of default 100 points, players are able to set the benchmark by themselves

License

This project is licensed under the MIT license.

Copyright (c) 2022 {Sayan Maity}