The goal of this assignment is simple: write a video poker game. The game will follow the
jacks or better rules listed at Wikipedia.
Playing Video Poker
Video poker works a lot like
real poker, though there are a few differences. A game follows these steps:
- Before any cards are dealt, the player selects the number of credits she wants to wager on the hand (between 1 and 5). These credits are deducted from the player’s balance before the hand is dealt. If the player wagers more than she has, put up a status message and ask again.
- The hand is dealt and displayed.
- The player selects zero or more cards to keep. Cards are selected by clicking on them; the word
HELDappears over cards that will be kep