- 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>
46 lines
1.3 KiB
Rust
46 lines
1.3 KiB
Rust
//! 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,
|
|
}),
|
|
}
|
|
}
|