Game Description and Initial Setup

Learn the game objective in Greedy, and do the initial setup like defining a class with some basic functions.

Description

Greedy is a dice game where the player tries to reach the highest possible score in ten rounds. The player may increase their score by rolling the dice as many times as they want in each round. But they dare not be too greedy. If they have a bad roll, they could lose all their points for that round!

The game starts by rolling all six dice. If any dice show points, and the player chooses to end the round, they keep the points they have rolled so far. Or the player may choose to roll the remaining dice to see whether they can earn more points for that round. If they roll additional points, they may end the round or roll any dice still remaining. If they are lucky enough for all six dice to have points, they may roll all six dice again. They must continue to choose between ending the round or rolling the remaining dice. However, if at any point they get no additional points by rolling the remaining dice, they lose all the points they have accumulated for that round, and the round ends.

Points are scored as follows:

  1. Each one (unless three or more are rolled together) - 10 points
  2. Each five (unless three or more are rolled together) - 5 points
  3. Three ones - 100 points
  4. Three of anything else - 10 times the value of the die. For example, three sixes would be 60 points
  5. Four of a kind - 200 points
  6. Five of a kind - 300 points
  7. Six of a kind - 500 points
  8. Straight (one through six) - 250 points Here is a screenshot of the Greedy program:

Get hands-on with 1200+ tech skills courses.