From 6c30258da6449f9ffae4b42f4aeda587fe4a3111 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Tue, 1 Feb 2011 17:31:14 -0600 Subject: try putting multiple cards to the left using bubble sort --- game.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'game.cpp') 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)) -- cgit v1.2.3