Extra Credit

Video Poker

 

Objective: 

Create a game of video poker with a graphical user interface (GUI).  The player should start with $100, and then the system deals out 5 playing cards.  After the player sees the cards they are then asked to wager $10, $20, $50, or $100.  Next the user picks which cards they wish to throw away, and then the system deals more cards in their place.  Once this has concluded money are awarded by these criteria:

 

 

If the player’s cash is less than or equal to 0 the game is over, and they restart with $100.  Also once they close the program it should store the score in a file that once they restart it they begin with the score they once had.