summaryrefslogtreecommitdiffstats
path: root/game.cpp
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-02-01 17:31:14 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-02-01 17:31:14 -0600
commit6c30258da6449f9ffae4b42f4aeda587fe4a3111 (patch)
tree37cf8d9492c95f308d9ba80c77d55d4b8625f6b8 /game.cpp
parent97290be5e03ba2299de0e0988404fb4979852b5c (diff)
downloadpoker-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.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/game.cpp b/game.cpp
index fd9806e..6f8931b 100644
--- a/game.cpp
+++ b/game.cpp
@@ -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))