User Tools

Site Tools


greed_game

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
greed_game [2018/12/14 10:26] frchrisgreed_game [2018/12/14 10:32] frchris
Line 29: Line 29:
  
 Here are two BlueJ project zipped up with some code: Here are two BlueJ project zipped up with some code:
 +
   * {{ ::greed_game.zip |}}   * {{ ::greed_game.zip |}}
   * {{ ::greed_game_contest.zip |}}   * {{ ::greed_game_contest.zip |}}
 +
 +**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 "loosing" roll would be doubles. Rolling doubles occurs 6/36 times, the same probability as rolling a single die and casting a 2. Of course, for a game, the fun is based on the variety of outcomes, not the average outcome.
 +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.
 +
 +**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.  A timid player would always sit down right away, while a greedy player will press his or her luck.  
 +
 +{{ https://mathorama.com/apcs/uploads/Main/GreedContest.png}}
 +
greed_game.txt · Last modified: 2023/03/02 13:43 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki