Files
pokerfreak/src/preflop/push_chart.rs
T
mmintel c3786dba7c Turnier-Engine: ICM-Bubble-Aggression (jam_bonus) + Nash/ICM-Referenz
Open-Jam weitet sich an der Bubble nach dem ICM-Druck des deckenden
Callers (icm/risk.jam_pressure, Gegenstueck zu call_premium). Konvexer
jam_width_factor (1 + 3.4*(p/MAX)^3) - gemessen gegen ICM-Nash: Engine
97/76/66% vs 97/79/65% (vorher 59% payout-blind, +38pp Luecke).

- advise_widened neben unveraendertem advise (null Test-Churn)
- jam_widen nur im Open/ueber-Limp-Zweig, nie FacingAllIn; Cash neutral
- turnier_referenz.py: eingefrorene Equity-Tabelle + Nash/ICM Fictitious
  Play; turnier_benchmark.py: nash_push_score + icm_jam_score
- Kurzstack-Push/Fold-Fix + HeadsUpButton 0.60 Nash-kalibriert
- Micro-only-Schalter (spielplan.mikro_band + Cockpit-Toggle)

Verifiziert: Cash-Benchmark 0.00/0 Deals, nash_push_score unveraendert,
kurzstack_jam+aof 40 gruen, Preflop 9 gruen. 2 rote pipeline_tournament
bei neutralisiertem jam_bonus identisch rot = vorbestehende Call-Raender.
2026-11-08 01:22:57 +01:00

58 lines
1.9 KiB
Rust

//! All-in-or-fold charts (binary action shape), as data.
//!
//! Cut-off = position base (at 10 bb) x situation factor x stack factor, kept in `[0, 1]`.
//! Shorter stacks push wider; unknown position uses the early row.
use super::position::Position;
use super::situation::Situation;
/// Share of hands pushed at 10 bb effective, unopened.
fn base(position: Position) -> f64 {
match position {
Position::Early | Position::Unknown => 0.30,
Position::Middle => 0.38,
Position::Cutoff => 0.48,
Position::Button => 0.62,
Position::SmallBlind => 0.70,
Position::BigBlind => 0.25,
// Nash-kalibriert (8.11., entscheiden/turnier_referenz): HU-Open-Jam bei 10bb ist 60 %, nicht
// 85 %. Die alte Breite kostete ~4-5 bb/100 (Über-Jam). Messbar über `nash_push_score`.
Position::HeadsUpButton => 0.60,
}
}
/// Behind other action, the pushing range tightens (jamming over a raise is the tightest).
fn situation_factor(situation: Situation) -> f64 {
match situation {
Situation::Unopened => 1.0,
Situation::FacingLimp => 1.1,
Situation::FacingOpen => 0.4,
Situation::FacingThreeBetPlus => 0.15,
Situation::FacingAllIn => 1.0,
}
}
/// `(max effective stack in bb, factor)`; anything deeper than the last entry gets `DEEP`.
const STACK_FACTORS: [(f64, f64); 7] = [
(3.0, 2.0),
(5.0, 1.6),
(7.0, 1.3),
(10.0, 1.0),
(15.0, 0.8),
(20.0, 0.6),
(30.0, 0.4),
];
const DEEP: f64 = 0.25;
fn stack_factor(effective_bb: f64) -> f64 {
STACK_FACTORS
.iter()
.find(|(limit, _)| effective_bb <= *limit)
.map_or(DEEP, |(_, factor)| *factor)
}
/// Push cut-off (percentile) for a non-all-in situation.
pub fn push_cutoff(position: Position, situation: Situation, effective_bb: f64) -> f64 {
(base(position) * situation_factor(situation) * stack_factor(effective_bb)).clamp(0.0, 1.0)
}