Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now

Study and review the Case Study: Deck of Cards on page 256 which was presented in the class. Do not copy the code on page 257 you will be given a starting code that you can use. The first thing to do is you put your name and replace the string “YourNameHere”. A lot of declaration and initialization is done

Poker Hand

(final project)

Study and review the Case Study: Deck of Cards on page 256 which was presented in the class. Do not copy the code on page 257 you will be given a starting code that you can use. The first thing to do is you put your name and replace the string “YourNameHere”. A lot of declaration and initialization is done for you, then you add codes of your own to achieve the objective of the project. If you do not know the poker ranking study the ranking at the end of this assignment or go to https://www.cardplayer.com/rules-of-poker/hand-rankings . You do not shuffle the deck of card you are given the pre shuffle card sequence that you can copy from dataOf52NumbersH.txt. This is only an initial test data which does not include the royal flush and special straight flush. You must create others five cards sequence to test your program this is part of being a good programmer, to test all possible combination that you can think of.

Objective: Group the 52 cards into 10 groups of five cards to form a poker hand starting from index 0. (Hand # 1: 0, 1, 2, 3, 4 Hand #2: 5, 6, 7, 8, 9) Display their card value like 5 of hearts, K of spades etc. which is easy almost given by following the book case study “Deck of Cards”. Then determine the poker hand ranking example Royal Flush, Two pair, Four of a kind, ….etc. see the sample report next page.

(Again you will NOT generate or shuffle the deck of card you are given the 52 numbers to represent the pre-shuffle deck of cards. You will read in the 52 numbers as you can see the first few lines of the given starter code.)

The given test data (52 numbers in dataOf52NumbersH.txt) was hand pick and include most of the ranking does not include Royal flush and the special straight flush. You must come up with your own test data to check all possible poker hand ranks.

I will use different set of 52 cards to grade you.

Next page is the required result you must produce.

Submitted by : yourNameHere
enter your 52 number : 10 36 23496 11623 42815112412921
3485720 33 14 27 40 0 17 29 41 44 43 45 46 47 37 25 22 35 19 26 30
32 31 38 50 51 39 42 48 13 18

Hand # 1
Card number 10 : J of Spades
Card number 36 : J of Clubs
Card number 23 : J of Hearts
Card number 49 : J of Diamonds
Card number 6 : 7 of Spades
******************************************** Four of a kind
Hand # 2
Card number 1 : 2 of Spades
Card number 16 : 4 of Hearts
Card number 2 : 3 of Spades
Card number 3 : 4 of Spades
Card number 4 : 5 of Spades
******************************************** Pair
Hand # 3
Card number 28 : 3 of Clubs
Card number 15 : 3 of Hearts
Card number 11 : Q of Spades
Card number 24 : Q of Hearts
Card number 12 : K of Spades
******************************************** Two pair
Hand # 4
Card number 9 : 10 of Spades
Card number 21 : 9 of Hearts
Card number 34 : 9 of Clubs
Card number 8 : 9 of Spades
Card number 5 : 6 of Spades
******************************************** Three of a kind

….

…..

Etc

up to Hand # 10

*******************************************

missing all that has a blue line
look below this page you will see more of what’s missing

Hand # 10
Card number 50 : Q of Diamonds
Card number 51 : K of Diamonds
Card number 39 : A of Diamonds
Card number 42 : 4 of Diamonds
Card number 48 : 10 of Diamonds
******************************************** Flush

Scoring:

Generate 10 hands correctly with correct description of card and good

alignment of card number : 50 pts.
Identify 10 poker hands ranking ( 4 pts each) : 40 pts
two kind of straight (A to 4 and 10 to A) : 5 pts.
Good documentations and clear description of your design : 5 pts

All the above points depend on a successful zoom interview that you did the design (at least understand) and programming.

See the one page handbook for points deductions of required file names.

Extract from : https://www.cardplayer.com/rules-of-poker/hand-rankings

Poker hands from highest to lowest

1. Royal flush
A, K, Q, J, 10, all the same suit.

2. Straight flush

Five cards in a sequence, all in the same suit.

3. Four of a kind

All four cards of the same rank.

4. Full house
Three of a kind with a pair.

5. Flush
Any five cards of the same suit, but not in a sequence.

6. Straight
Five cards in a sequence, but not of the same suit.

7. Three of a kind
Three cards of the same rank.

8. Two pair

Two different pairs.

9. Pair

Two cards of the same rank.

10. High Card

When you haven’t made any of the hands above, the highest card plays.

In the example below, the jack plays as the highest card.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes