- 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>
32 lines
1.1 KiB
Rust
32 lines
1.1 KiB
Rust
use crate::read::made::Made;
|
|
|
|
/// A villain's estimated holdings as data; the engine turns it into a predicate.
|
|
///
|
|
/// A hand is in the range when its preflop percentile lies in `[lo, hi]`
|
|
/// (0 = best hand) and it satisfies every `Continuation`.
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
pub struct RangeSpec {
|
|
pub lo: f64,
|
|
pub hi: f64,
|
|
pub continues: Vec<Continuation>,
|
|
}
|
|
|
|
/// "Villain bet or raised when the board had `board_len` cards": only hands at least
|
|
/// `min_made` at that point stay in — plus drawing hands when `draws_continue` — plus
|
|
/// a bluff fraction: hands below the floor are admitted so that they make up
|
|
/// `bluff_share` of what passes (`engine::range_filter`). 0 = a pure value range.
|
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
|
pub struct Continuation {
|
|
pub board_len: usize,
|
|
pub min_made: Made,
|
|
pub draws_continue: bool,
|
|
pub bluff_share: f64,
|
|
}
|
|
|
|
impl RangeSpec {
|
|
/// The best `top` fraction of starting hands, no postflop filter.
|
|
pub fn top(top: f64) -> RangeSpec {
|
|
RangeSpec { lo: 0.0, hi: top, continues: Vec::new() }
|
|
}
|
|
}
|