void GamePlay::thirdhand2() { Checks b; PlayerHandValue = 0; CpuHandValue = 0; result = ""; int x = 24; int y = 3; showc = true; shows = true; PressEnterToContinue = "Press Enter To Continue..."; Checks ck; Poker a; system("cls"); a.tablecards(deck, 10); a.createhand(hand, 25, 40); a.createtable(tablehand, 5, 17); // this will create the table, passing in the table hand, always pass in 5 and 7 for location Cards(); a.createtable(cpuhand, x, y);//creating the hands PlayerHandValue = ck.DetermineHand(PlayerValues, psuits);// determine the player hand storing value in PlayerHandValue CpuHandValue = ck.DetermineHand(cvalues, csuits);// determine the cpu hand storing value in CpuHandValue if (foldv) { PlayerHandValue = 0; } ck.determine(PlayerHandValue, CpuHandValue); if (showc) { chand = chand; } if (shows) { PressEnterToContinue = PressEnterToContinue; } if (!foldc) { fold = " "; } if (foldc == true) { //fold = "YOU LOSE!"; } Text(); // method to display the text on screen cout << chand; cin.get(); g = 0; cash = 0; if (cash == 0) { Clear(); system("cls"); NGameMenu(); } NewHand(); }
void GamePlay::thirdhand() { Checks b; PlayerHandValue = 0; CpuHandValue = 0; result = ""; int x = 24; int y = 3; showc = true; shows = true; PressEnterToContinue = "Press Enter To Continue..."; Checks ck; Poker a; Aesthetics cb; system("cls"); a.createhand(hand, 25, 40); a.createtable(tablehand, 5, 17); // this will create the table, passing in the table hand, always pass in 5 and 7 for location Cards(); a.createtable(cpuhand, x, y);//creating the hands PlayerHandValue = ck.DetermineHand(PlayerValues, psuits);// determine the player hand storing value in PlayerHandValue CpuHandValue = ck.DetermineHand(cvalues, csuits);// determine the cpu hand storing value in CpuHandValue if (foldv) { PlayerHandValue = 0; } ck.determine(PlayerHandValue, CpuHandValue); if (showc) { chand = chand; } if (shows) { PressEnterToContinue = PressEnterToContinue; } if (!foldc) { fold = " "; } if (foldc == true) { //fold = "YOU LOSE!"; } Text(); // method to display the text on screen cin.get(); cout << chand; g = 0; duringhand = true; if (!duringhand) { cb.text1("You Ran Out of Money!"); cin.get(); system("cls"); Clear(); NGameMenu(); } if (cash == 0) { Clear(); system("cls"); NGameMenu(); } if (cpucash == 0) { system("cls"); Aesthetics a; a.textattr(13); cout << " " << endl; cout << " " << endl; cout << " /////////////////////////////////////////////////" << endl; cout << " // "; a.textattr(3); cout << "* * * * * * "; a.textattr(13); cout << "//" << endl; cout << " // "; a.textattr(3); cout << " * "; a.textattr(6); cout << " CPU RAN OUT OF MONEY! "; a.textattr(3); cout << "* "; a.textattr(13); cout << "//" << endl; cout << " // "; a.textattr(3); cout << "* * "; a.textattr(13); cout << "//" << endl; cout << " // "; a.textattr(3); cout << "* "; a.textattr(6); cout << "You Win! "; a.textattr(3); cout << "* "; a.textattr(13); cout << "//" << endl; cout << " // "; a.textattr(3); cout << "* "; a.textattr(3); cout << "* * * "; a.textattr(13); cout << "//" << endl; a.textattr(13); cout << " //"; a.textattr(3); cout << "*********************************************"; a.textattr(13); cout << "//" << endl; a.textattr(13); cout << " /////////////////////////////////////////////////" << endl; cout << " " << endl; cout << " " << endl; cout << " " << endl; NGameMenu2(); } NewHand(); }