Files
pokerfreak/src/preflop/plan.rs
T

22 lines
627 B
Rust

/// What the chart says, before sizing and legality are applied by the engine.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ChartAction {
Fold,
/// Call / limp / check-behind when free.
Call,
/// Open or re-raise to a standard size.
Raise,
/// All-in.
Jam,
}
#[derive(Clone, Debug, PartialEq)]
pub struct PreflopPlan {
pub action: ChartAction,
/// Hand strength percentile for this variant, 0.0 = best hand, 1.0 = worst.
pub percentile: f64,
/// How firmly the chart holds: 1.0 deep inside the range, near 0 at its border.
pub certainty: f64,
pub reason: String,
}