Bluffing and bluff catching driven by opponent frequencies

- exploit::fold_chance: documented foldToBet -> P(fold) map by bet size, per villain
- engine: two-branch EV for every raise (fold branch, called branch vs calling range)
- semibluffs first, pure bluffs heads-up above a fold and EV threshold
- betting ranges keep a bluff share (size, street, style or new profile.aggression)
- guards: no bluffs vs never-folders, no bluff catch vs ranges without bluffs
- steal width in unopened pots from how often the blinds fold
- combo-list sampling for narrow two-card ranges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 13:11:38 +01:00
co-authored by Claude Opus 5.5
parent 8b74c451a2
commit 1ad6f76088
41 changed files with 2871 additions and 1720 deletions
+45 -51
View File
@@ -1,51 +1,45 @@
//! How each style moves the thresholds, as data.
use super::style::Style;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Shift {
/// Added to `call_margin`.
pub call_margin: f64,
/// Added to `value_raise`.
pub value_raise: f64,
/// Multiplies `range_width_scale`.
pub range_width: f64,
/// `fold_equity_scale` to use when the profile has no foldToBet figure.
pub fold_equity_default: f64,
}
const NONE: Shift = Shift {
call_margin: 0.0,
value_raise: 0.0,
range_width: 1.0,
fold_equity_default: 1.0,
};
/// `None` for `Unknown`: nothing is learned from an empty profile.
pub fn shift_for(style: Style) -> Option<Shift> {
match style {
Style::Unknown => None,
Style::Regular => Some(NONE),
// Their bets are strong, they fold to ours, we defend less.
Style::Nit => Some(Shift {
call_margin: 0.04,
value_raise: 0.02,
range_width: 0.85,
fold_equity_default: 1.25,
}),
// They call too much: value-bet thinner, never bluff.
Style::CallingStation => Some(Shift {
call_margin: 0.0,
value_raise: -0.04,
range_width: 1.0,
fold_equity_default: 0.5,
}),
// They bluff and raise light: call wider, defend wider.
Style::LooseAggressive => Some(Shift {
call_margin: -0.015,
value_raise: -0.01,
range_width: 1.15,
fold_equity_default: 0.9,
}),
}
}
//! How each style moves the thresholds, as data.
use super::style::Style;
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Shift {
/// Added to `call_margin`.
pub call_margin: f64,
/// Added to `value_raise`.
pub value_raise: f64,
/// Multiplies `range_width_scale`.
pub range_width: f64,
}
const NONE: Shift = Shift {
call_margin: 0.0,
value_raise: 0.0,
range_width: 1.0,
};
/// `None` for `Unknown`: nothing is learned from an empty profile.
pub fn shift_for(style: Style) -> Option<Shift> {
match style {
Style::Unknown => None,
Style::Regular => Some(NONE),
// Their bets are strong, they fold to ours, we defend less.
Style::Nit => Some(Shift {
call_margin: 0.04,
value_raise: 0.02,
range_width: 0.85,
}),
// They call too much: value-bet thinner, never bluff.
Style::CallingStation => Some(Shift {
call_margin: 0.0,
value_raise: -0.04,
range_width: 1.0,
}),
// They bluff and raise light: call wider, defend wider.
Style::LooseAggressive => Some(Shift {
call_margin: -0.015,
value_raise: -0.01,
range_width: 1.15,
}),
}
}