项目作者: apathania22

项目描述 :
Fun 2 player game with the dice in the center
高级语言: JavaScript
项目地址: git://github.com/apathania22/pig-game.git
创建时间: 2020-05-11T19:26:35Z
项目社区:https://github.com/apathania22/pig-game

开源协议:

下载


The-Pig-Game

Fun 2 player game with the dice in the center 🎲 . Always this stupid random dice, right?

Easy-to-play game written in pure JS, but possibly this is not what you want to know about but more about the rules of the game.

Rules of the game

  • 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 GLBAL score. After that, it’s the next player’s turn
  • The first player to reach 100 points on GLOBAL score wins the game