Skip to content

pyrva/yahtzee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yahtzee

Game Description

The game of yahtzee is a simple dice game. Each round, each player rolls five six sided dice. The player may choose to reroll some or all of the dice up to three times (including the original roll). The player then places the roll at a category, such as ones, twos, sixes, etc. If the roll is compatible with the score, the player gets a score for this roll according to the rules. If the roll is not compatible, the player gets a score of zero for this roll.

The player shall go until they've used all the categories.

Scoring

Catgory Scoring
1s, 2s, 3s, 4s, 5s, 6s Score the sum of the dice that reads one, two, three, four, five or six, respectively.
Three of a kind Sum of dice if 3 are the same.
Four of a kind Sum of dice if 4 are the same.
Full house 25 points if the dice are a pair and three of a kind
Small straight 30 points with four dice in ascending order.
Large straight 40 points with four dice in ascending order.
Yahtzee 50 points if all dice are the have the same number.
Chance The player gets the sum of all dice, no matter what they read.

Constraints

  • Assume a single player

Releases

No releases published

Packages

No packages published

Languages