Question: For Java In this assignment, you will implement a simulation of a popular casino game usually called video poker. The card deck contains 52 cards,
For Java In this assignment, you will implement a simulation of a popular casino game usually called video poker. The card deck contains 52 cards, 13 of each suit. At the beginning of the game, the deck is shuffled. You need to devise a fair method for shuffling. (It does not have to be efficient.) Then the top five cards of the deck are presented to the player. The player can reject none, some, or all of the cards. The rejected cards are replaced from the top of the deck. Now the hand is score. At the very minimum, your project should have at least a Card class and a driver class. Your program should pronounce it to be one of the following: * No pair - The lowest hand, containing five separate cards that do not match up to create any of the hands below. * One pair - Two cards of the same value, for example two queens. * Two pairs - Two pairs, for example two queens and two 5's. * Three of a kind - Three cards of the same value, for example three queens. * Straight - Five cards with consecutive values, not necessarily of the same suit, such as 4, 5, 6, 7, and 8. The ace can either precede a 2 or follow a king. * Flush - Five cards, not necessarily in order, of the same suit. * Full House - Three of a kind and a pair, for example three queens and two 5's * Four of a Kind - Four cards of the same value, such as four queens * Straight Flush - A straight and a flush: Five cards with consecutive values of the same suit * Royal Flush - The best possible hand in a poker. A 10, jack, queen, king, and ace, all of the same suit. The player pays a token for each game, and wins according to the following payout chart: Hand Payout Royal Flush 250 Straight Flush 50 Four of a Kind 25 Full House 6 Flush 5 Straight 4 Three of a kind 3 Two Pair 2 One pair 1
bust 0
Please comment and use simple classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
