Files
pokerfreak/src/exploit/thresholds.rs
T

26 lines
946 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// Decision thresholds the engine applies on top of the break-even point.
/// The exploit layer moves these; the engine only reads them.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Thresholds {
/// Equity share must exceed break-even by this much to continue (call).
pub call_margin: f64,
/// Minimum equity share for a value raise.
pub value_raise: f64,
/// If |equity − break-even| is inside this band, the answer is ABSTAIN.
pub abstain_band: f64,
/// Multiplier on the default fold-equity estimate for bets/raises (1.0 = neutral).
pub fold_equity_scale: f64,
/// Preflop: multiplier on the chart's opening/continuing width (1.0 = neutral).
pub range_width_scale: f64,
}
impl Thresholds {
pub const BASE: Thresholds = Thresholds {
call_margin: 0.02,
value_raise: 0.62,
abstain_band: 0.015,
fold_equity_scale: 1.0,
range_width_scale: 1.0,
};
}