summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 710d7a2..9fa9d51 100644
--- a/main.cpp
+++ b/main.cpp
@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
pokerGame->shufflePile();
#ifdef DEBUG
- cout << "Deck after shuffle" << endl;
+ PRINT_COLOR(ANSI_COLOR_CYAN, "\ndebug: deck after shuffle\n");
pokerGame->printPile();
#endif
@@ -49,6 +49,13 @@ int main(int argc, char *argv[])
cout << "Top suit: " << *pokerGame->suits[userCountAndSuit.whatSuit] << ", count: "
<< userCountAndSuit.count << endl;
+ if ( pokerGame->doWeHaveAnAce(pokerGame->getUserCards()) )
+ cout << "You have an Ace!" << endl;
+
+ pokerGame->discardAndDraw( pokerGame->getUserCards(), 2, 3 );
+ cout << "Cards in your hand after discarding: ";
+ pokerGame->printUserCards();
+
cout << "\nDealing cards to opponent(s)" << endl;
pokerGame->dealOpponentCards(pokerGame->numOfOpponents);
pokerGame->sortOpponentCards(pokerGame->numOfOpponents);
@@ -56,7 +63,7 @@ int main(int argc, char *argv[])
pokerGame->printOpponentCards(pokerGame->numOfOpponents);
#ifdef DEBUG
- cout << "\nDeck after being delt to opponents and user" << endl;
+ PRINT_COLOR(ANSI_COLOR_CYAN, "\ndebug: deck after being delt to opponents and user\n");
pokerGame->printPile();
#endif