MultiPlayer Dice Game
DiceGame is a MultiPlayer Dice Game with a 6 faced dice.
requires ruby
version 2.4.1
:
$ rvm install 2.4.1
move inside directory
run
$ ruby game.rb
Number of players n <Should be numeric and greater than equal to 2 >
game Point m <Should be numeric and greater than equal to 10 >
- Players Oreder will decide randomly at the start of the game
- If Player got 6 point, player immediately get another chance to roll again
- If Player got 1, then point will not be added to player score
- if Player got 2 or more consecutive 1's, then Player not allowed to role dice in next round
Output Snippet for 3 players for 15 game points snippet