void KI::performPreFlop() { if (ptr_kiCalculator->preFlopRaiseDecision()) { // DEBUG calling(); // DEBUG END! // raising(ptr_roundManager->getCurrentMaxBet() * 2); } else { ////// DEBUG ////// // calling(); // //// DEBUG END //// // folding(); } }
void KI::performRiver() { checkOwnedCombinations(); int highestCardComboRank = 0; for (int i = 0; i < 10; ++i) { if (ownedCardCombinations[i].getComboOwned()) { highestCardComboRank = ownedCardCombinations[i].getComboCardRanking(); } } if (highestCardComboRank == 2) { raising(ptr_roundManager->getPot() * 2); } else if (highestCardComboRank > 2) { raising(ptr_roundManager->getPot() * 2); } // check cardOuts to the potOdds if (getPercentagePotOdds() > ptr_kiCalculator->getProbabilityDrawingUsefulCard(currentRound + 1)) { float differencePotOuts = getPercentagePotOdds() - ptr_kiCalculator->getProbabilityDrawingUsefulCard(currentRound + 1); // DEBUG std::cout << differencePotOuts << std::endl; if (differencePotOuts >= 0.2f) // >= 20% { raising(ptr_roundManager->getCurrentMaxBet() * 2); } else if (differencePotOuts < 0.2f) // < 20% { calling(); } } else { folding(); } }
void choose_lesson() { char n; textcolor(19); textbackground(20); clrscr(); gotoxy(2,5); cout<<"Lesson 1: Easy"; gotoxy(2,6); cout<<"Lesson 2: Medium"; gotoxy(2,7); cout<<"Lesson 3: Hard"; gotoxy(2,9); cout<<"Choose a lesson number :\t"; n=getch(); calling(n); }