Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //straight flush
- Hand hand3 = Hand(3);
- for (int i = 1; i < 6; i++){ Card::Rank loopRank = (Card::Rank)i; Card* card = new Card(loopRank, Card::H); hand3.AddCard(card); }
- // full house
- Hand hand = Hand(1);
- for (int i = 0; i < 2; i++) { hand.AddCard(carda); } for (int i = 0; i < 3; i++) { hand.AddCard(cardb); }
- // flush
- Hand hand2 = Hand(2);
- for (int i = 0; i < 5; i++) { hand2.AddCard(carda); }
- hand.Evaluate();
- cout << hand.ToString();
- hand2.Evaluate();
- cout << hand2.ToString();
- hand3.Evaluate();
- cout << hand3.ToString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement