Question: Project must be written in dr.Java Project 7.1 Poker Simulator. In thi s assignment, you will implement a simulation of a popular casino game usually

Project must be written in dr.Java Project 7.1 Poker Simulator. In thiProject must be written in dr.Java

Project 7.1 Poker Simulator. In thi s assignment, you will implement a simulation of a popular casino game usually called video poker. The card deck contains 52 cards, 13 of cach suit. At the beginning of thc gamc, thc deck is shuffled. You nccd to devise a fair method for shuffling. (It docs not have to be efficient.) Then the top five cards of the deck are presented to the player. The player can reject nonc, some, or all of tho cards. The rciccted laccd from scored. Your program cards are rCp c top of the deck. Now the hand is should pronounce it to be onc 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 valuc, for c o pairs-Two pairs, for example two queens and two 5's. Threc of a kind-Three cards of the same valuc, for example t Straight-Five cards with consccutive valucs, not nccessarily of the same suit, such as 4, 5, 6,7, and 8. The ace can cither precede a 2 or follow a king. Flush-Five cards, not necessarily in order, of the same suit. Full Housc-Three of a kind and a pair, for example thrce queens and two 5's Four of a Kind-Four cards of the same valuc, such as four queens. Straight Flush- A straight and a flush: Five cards with consccutive values of the samc suit Royal Flush-The best possible hand in poker. A 10, jack, queen, king, and acc, all of the samc suit. . If you are so inclined, you can implement a wager. The player pays a JavaDollar for cach game, and wins accordin g to the following payout Payout Hand Royal Flush Straight Flush Four of a Kind Full House Flush Hand Straight Three of a Kind Two Pair Payout 250 50 25 6 Pair of Jacks or Better 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!