Yatzy is a popular classic dice game that is played with 5 dices and consists of 13 different rounds for each player and at each round every player can only choose one category to play.
You can try Yatzy from this link.
Every player is supposed to play 13 rounds
At each round, the player can roll the dices for up to 3 times
an can typically choose specific dices to not roll in order to satisfy some combinations.
- Ones, Twos, Threes, Fours, Fives, and Sixes: The player scores the sum of the corresponding dice faces. For example, in the "Threes" category, the player scores the total number of threes rolled.
- Three of a Kind: Three dice with the same number. The player scores the sum of all the dice.
- Four of a Kind: Four dice with the same number. The player scores the sum of all the dice.
- Full House: Three of one kind and two of another. The player scores 25 points.
- Small Straight: A sequence of four consecutive numbers. The player scores 30 points.
- Large Straight: A sequence of five consecutive numbers. The player scores 40 points.
- Yahtzee: All five dice showing the same number. The player scores 50 points.
- Chance: The player scores the sum of all dice, regardless of the combination.
The bonus in Yatzy is awarded if the total sum of the Upper Section categories (Ones, Twos, Threes, Fours, Fives, and Sixes) is 63 or higher. If a player achieves this, they receive a bonus of 35 points. The bonus is added to their total score.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.