Question: I wanna make this fun casino game using programming c++. Any help? If you could explain a bit I'd really appreciate it. Poker Game (C++
Poker Game (C++ CODE ONLY) First input line should be single integer n, which represents number of rounds. There are n lines per rounds. For each round you are given 10 cards. The first five for Player 1 and next 5 for player 2, for example 9A 8S 6C QH etc. The values of the cards in order are 2 345 6789 TJQKA, with the suits being S CHD. Output: If player 1 wins, say PLAYER 1 If player 2 wins, say PLAYER 2. TIE if none wins. How to win: 1. STRAIGHTFLUSH is when you get a full set of consecutive cards with all being the same suit 2. FOUR OF A KIND is when a set of 4 cards have the same value 3. FULL HOUSE is when there are three cards of one value and two of another 4. TWO PAIRS is a set of two different pairs 5. HIGHEST CARD is simply whoever has the highest card wins the round; if not, then the next highest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
