greed_game
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
greed_game [2018/12/14 10:16] – created frchris | greed_game [2018/12/14 10:47] – frchris | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Greed Game: | + | **Greed Game** |
+ | The Greed Game is something I was told was invented by Rex Bogs. It is a fun party game that is based on " | ||
Overview: | Overview: | ||
- | -5 rounds | + | * 5 rounds |
- | -your score is the sum of scores from the five rounds | + | |
- | -highest score wins | + | |
A " | A " | ||
- | 1. Everyone stands | + | * Everyone stands |
- | 2. a six-sided die is rolled twice, and the sum is everybody’s current score for this round. | + | |
- | 3. If you are happy with this score, sit down writing the number on your score card | + | |
- | 4. If you want more, keep standing, and the die is rolled again | + | |
What's next: | What's next: | ||
- | 1. If a 2 was not rolled, add the number to your score card | + | * If a 2 was not rolled, add the number to your score card |
- | 2. If you like the score sit down and write it to your score card | + | |
- | 3. If you want more, remain standing | + | |
What if it is a 2? | What if it is a 2? | ||
- | If you are sitting down, this is merely the end of the round | + | * If you are sitting down, this is merely the end of the round |
- | If you are standing, you must score a zero for this round. | + | |
+ | {{ :: | ||
+ | **Solo Player** | ||
+ | Write a solo player app, that will play 5 rounds. | ||
+ | **Multi Player** | ||
+ | Write a program that will ask for the number of players, get a name for each player, and for each round each player whether they want to sit and bank the round' | ||
+ | After each round it should report the current point totals, and after 5 rounds announce the winner. | ||
+ | Here are two BlueJ project zipped up with some code: | ||
- | Here are two BlueJ project zipped up with some code:{{ :: | + | * {{ :: |
+ | * {{ :: | ||
+ | **Greed Game Sim ** | ||
+ | Since the chances of rolling a 2 is 1/6, then why not modify the game that so two die are cast, and the " | ||
+ | |||
+ | It takes a while to play a game, so why not have the computer simulate the game many many times? We can then compare the original game to the modified game and see if the variation is about the same, or if one games seems different. | ||
+ | |||
+ | The code above can be changed to be verbose, and with any number of players (see the first two lines of the '' | ||
+ | |||
+ | **Greed Game Contest ** | ||
+ | |||
+ | You can now design and test Game strategies with this one. You can design subclasses of player that will sit down based on a strategy. | ||
+ | |||
+ | {{ https:// |
greed_game.txt · Last modified: 2023/03/02 13:43 by frchris