diff options
author | Kyle K <kylek389@gmail.com> | 2011-02-01 17:31:14 -0600 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-02-01 17:31:14 -0600 |
commit | 6c30258da6449f9ffae4b42f4aeda587fe4a3111 (patch) | |
tree | 37cf8d9492c95f308d9ba80c77d55d4b8625f6b8 /game.cpp | |
parent | 97290be5e03ba2299de0e0988404fb4979852b5c (diff) | |
download | poker-6c30258da6449f9ffae4b42f4aeda587fe4a3111.tar.gz poker-6c30258da6449f9ffae4b42f4aeda587fe4a3111.tar.bz2 poker-6c30258da6449f9ffae4b42f4aeda587fe4a3111.zip |
try putting multiple cards to the left using bubble sort
Diffstat (limited to 'game.cpp')
-rw-r--r-- | game.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -837,16 +837,11 @@ void Game::evaluateHand(Card **cards, int who) /* four of a kind */ else if (tmp2.count == 4) - { whatHand = 2; - sortFourOfAKind(cards, &tmp2); - } /* full house */ else if ((tmp2.count == 3) && hasFullHouse(cards, &tmp2)) - { whatHand = 3; - } /* flush */ else if (tmp.count == 5) @@ -858,10 +853,7 @@ void Game::evaluateHand(Card **cards, int who) /* three of a kind */ else if (tmp2.count == 3) - { whatHand = 6; - sortThreeOfAKind(cards, &tmp2); - } /* two pair */ else if (hasTwoPairs(cards)) |