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
greed_game [2023/03/02 13:39] frchrisgreed_game [2023/03/02 13:43] (current) frchris
Line 60: Line 60:
 **Greed Game Contest ** **Greed Game Contest **
  
-You can now design and test Game strategies with this one.  You can design subclasses of ''Player'' that will sit down (''setActive(false)'')based on a strategy.  A timid player would always sit down right away, while a greedy player will press his or her luck.  +You can now design and test Game strategies with this one.  You can design subclasses of a new ''Player'' class is a little different.  Instead of "sit down," your ''decide'' method would call ''setActive(false)''.  There are also two parmeters that delivers some information that you can use to make your own strategy.  A timid player would always sit down right away, while a greedy player will press his or her luck.  Luck at the ''decide'' of the different subclasses of ''Player''.
  
  
  
 {{ https://mathorama.com/apcs/uploads/Main/GreedContest.png}} {{ 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