Yahtzee

I wanted to see if I could make a Yahtzee game that emulates truly random rolls.

I play a Yahtzee knock off on my phone, and it is clearly making adjustments because there are levels of difficulty. I like creating games (check out ) and this one seemed like a fun challenge. It’s a dice game, and my focus was on getting the logic down. So, enjoy!

According to , Yahtzee is owned by and they have an and an . Check out a higher quality gaming experience there.

How to play

Yahtzee is a dice game played with five six-sided dice. The objective of the game is to score points by rolling certain combinations of the dice. The game is played with a scorecard, with a separate section for each combination.

  1. The first step is to roll all five dice. You can roll them as many times as you want, but you must set aside at least one die after each roll. This means that you cannot roll all five dice again after the first roll.
  2. After the first roll, you can set aside any dice that you want to keep and roll the remaining dice again.
  3. After the second roll, you must again set aside at least one die and you can roll the remaining dice again, if any.
  4. After the third roll, you must set aside any remaining dice and cannot roll again.
  5. After the third roll, you must choose one of the sections on the scorecard to fill in with your roll. For example, you might score your roll as "3 of a kind" if you have rolled three dice with the same number. Each combination can only be filled once in the game, so choose wisely.
  6. Once you have filled in a section on the scorecard, your turn is over, and it's the next player's turn.
  7. The game ends when all thirteen sections of the scorecard have been filled in.
  8. The player with the highest total score at the end of the game wins.

Some possible combinations are:

  • 3 of a kind: Sum of all the dice if three of them have the same value.
  • 4 of a kind: Sum of all the dice if four of them have the same value.
  • Small Straight: 30 points if a player rolls 1-2-3-4-5 or 2-3-4-5-6 in any order.
  • Large Straight: 40 points if a player rolls 1-2-3-4-5 or 2-3-4-5-6 in order.
  • Full House: 25 points, if a player rolls two of one number, three of another number.
  • Yahtzee: 50 points, if all five dice have the same value
  • Chance: Sum of all the dice
  • Bonus: Extra 35 points if the single totals are greater than 62

Scoring combination are many and different based on the version of the game.

A score over 200 is considered good and above 250 is considered very good. However, it really depends on the competitive level of the players and the scoring rule that been agreed upon before the game.

It's important to remember, Yahtzee is a game of luck, so the outcome can be very different each time you play.

0
0
0