Basic hit detection

This commit is contained in:
2023-03-21 14:42:54 -07:00
parent d7538ec3d3
commit 0be34af8dc
20 changed files with 343 additions and 41 deletions

View File

@ -178,8 +178,8 @@ struct PokerTurn PokerPlayer::getAITurn() {
amount = bluffBet;
isBluff = true;
}
} else if ((expectedGain < 1.0f && confidence < 0.85f) || confidence < 0.1f) {
if (random < 80) {
} else if((expectedGain < 1.0f && confidence < 0.85f) || confidence < 0.1f) {
if(random < 80) {
amount = 0;
} else if(random < 5) {
amount = callBet;
@ -188,13 +188,13 @@ struct PokerTurn PokerPlayer::getAITurn() {
amount = bluffBet;
isBluff = true;
}
} else if ((expectedGain < 1.3f && confidence < 0.9f) || confidence < 0.5f) {
if (random < 60 || confidence < 0.5f) {
} else if((expectedGain < 1.3f && confidence < 0.9f) || confidence < 0.5f) {
if(random < 60 || confidence < 0.5f) {
amount = callBet;
} else {
amount = maxBet;
}
} else if (confidence < 0.95f || this->pokerGame->community.size() < 4) {
} else if(confidence < 0.95f || this->pokerGame->community.size() < 4) {
if(random < 20) {
amount = callBet;
} else {