Basic hit detection
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user