Reference no: EM132168440
Can you comment in the code
The user/player should be able to play the game
its due in about 2 weeks
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:
Nothing - Player loses their wager
Pair - Player gets back their wager
Two Pair - Player wins wager x 2
3 of a kind - Payer wins wager x 3
Full House - Player wins wager x 6
Flush - Player wins wager x 10
Straight - Player wins wager x 15
4 of a kind - Player wins wager x 20
Royal Flush - Player wins wager x 100
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.