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 revisionBoth sides next revision
greed_game [2018/12/14 12:55] frchrisgreed_game [2018/12/14 13:04] frchris
Line 32: Line 32:
  
 **Solo Player** **Solo Player**
-Write a solo player app, that will play 5 rounds.  It will roll the die twice.  If a 2 was rolled, the round is over and if the player is standing, they get a zero for the round.  If no 2 was rolled, the sum is added to the round total. The player is asked if they want to bank the round total, or remain standing and try rolling again.  This continues until either a 2 is rolled or the player sits and banks the round total.  Do this again until 5 rounds are played.  Report the grand total for the five rounds.+Write a solo player app, that will play 5 rounds.  It will roll the die twice.  If a 2 was rolled, the round is over and if the player was standing, they get a zero for the round.  If no 2 was rolled, the sum is added to the round total. The player is asked if they want to bank the round total, or remain standing and try rolling again.  This continues until either a 2 is rolled or the player sits and banks the round total.  Do this again until 5 rounds are played.  Report the grand total for the five rounds.
  
 {{ ::greed_game_solo.zip |}} {{ ::greed_game_solo.zip |}}
greed_game.txt · Last modified: 2023/03/02 13:43 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki