A poker hand consists of 5 cards drawn from a deck of 52 playing cards
Answers
So,
We can use probability there
Answer:
Implement PokerValue.java as specified in textbook page 417, problem 33(a). Your implementation must include following: 1. At least one ADT type selected from textbook files such as Stack, Queue, Collection or List type for storing the poker hand. 2. Must use only CardDeck.java to hold a deck of cards, and Card.java to represent each card. GUI is not required. 3. Default constructor to create a five-card poker hand from CardDeck.java. Make sure the poker hand is implemented with one of the textbook ADT as stated above. 4. Overloaded constructor accepts an array of five cards to initialize one poker hand. 5. toString() method outputs in the same format as shown in SampleActualOutput.txt 6. toArray() method returns an array of the best hand rank and Card objects. For example, {"Two_Pair", Card 1, Card 2, Card 3, Card 4, Card5}. 6. You may add other methods as necessary. 7. Test your PokerValue.java with supplied PokerGame.java. 8. Submit PokerValue.java. The PokerGame.java, as a driver, will generate