HU-Verteidigung liest die Call/Jam-Tabelle statt der Pot-Odds-Faustregel
Der Big Blind, der heads-up einem Button-Jam gegenuebersteht, fiel durch das blind_battle-Tor (es kannte nur SB-Open und BB-vs-Open) und landete auf der Pot-Odds-Faustregel: 13 % Call statt der ~38-48 % der Call/Jam-Tabelle - eine katastrophale Unterverteidigung, die die weite Blind-Jam-Range foldete. Jetzt greift die Tabelle (der HU-Button zaehlt als SB-Jammer), die ICM-Schicht reagiert wieder auf die Stacktiefe. turnier_benchmark liefert dem Defense-Score jetzt die History mit, sonst misst er die alte Faustregel. Frozen-Chart-Drift (cfr_multi) ist vorbestehend und owner-gated, nicht angefasst.
This commit is contained in:
@@ -125,12 +125,17 @@ def icm_jam_score():
|
||||
|
||||
|
||||
def _hu_facing_jam_icm(label, bb_stack, sb_stack, lage):
|
||||
"""Heads-up, Hero in der BB, der SB (Villain) ist mit `sb_stack` All-in; Hero callt oder foldet."""
|
||||
"""Heads-up, Hero in der BB, der SB/Button (Villain) ist mit `sb_stack` All-in; Hero callt oder
|
||||
foldet. MIT History (POST_SB/POST_BB/ALL_IN): ohne sie weiss die Engine nicht, WER jammt und
|
||||
faellt auf die Pot-Odds-Faustregel zurueck (zu eng) statt auf die Call/Jam-Tabelle (8.11.)."""
|
||||
return json.dumps({"variant": "NLHE", "bigBlind": 1.0, "seats": 2, "heroSeat": 1, "buttonSeat": 2,
|
||||
"heroCards": _karten(label), "board": {}, "street": "PREFLOP",
|
||||
"pot": sb_stack + 1.0, "toCall": sb_stack - 1.0, "heroStack": bb_stack - 1.0,
|
||||
"legalActions": ["FOLD", "CALL"], "allowedSizes": [], "tournament": lage,
|
||||
"villains": [{"seat": 2, "stack": sb_stack, "folded": False}]})
|
||||
"villains": [{"seat": 2, "stack": sb_stack, "folded": False}],
|
||||
"history": [{"street": "PREFLOP", "seat": 2, "action": "POST_SB", "amount": 0.5},
|
||||
{"street": "PREFLOP", "seat": 1, "action": "POST_BB", "amount": 1.0},
|
||||
{"street": "PREFLOP", "seat": 2, "action": "ALL_IN", "amount": sb_stack}]})
|
||||
|
||||
|
||||
def icm_defense_score():
|
||||
|
||||
@@ -310,9 +310,14 @@ fn multi(spot: &Spot, situation: Situation, depth: f64) -> Option<(Node, usize)>
|
||||
fn blind_battle(spot: &Spot, situation: Situation, pos: Position) -> bool {
|
||||
match (situation, pos) {
|
||||
(Situation::Unopened, Position::SmallBlind) => true,
|
||||
(Situation::FacingOpen, Position::BigBlind) => {
|
||||
sole_raiser(spot).is_some_and(|s| seat_position(spot, s) == Position::SmallBlind)
|
||||
&& callers(spot) == Callers::None
|
||||
// The big blind facing a lone small-blind open OR all-in: a heads-up blind-vs-blind
|
||||
// spot that the `vs open` / `vs jam` tables model. Without the all-in case the big
|
||||
// blind fell through to the pot-odds heuristic and defended far too tight against a
|
||||
// jam (13 % vs the ~38 % the call/jam table calls at 10 bb; Owner 8.11.).
|
||||
(Situation::FacingOpen | Situation::FacingAllIn, Position::BigBlind) => {
|
||||
sole_raiser(spot).is_some_and(|s| {
|
||||
matches!(seat_position(spot, s), Position::SmallBlind | Position::HeadsUpButton)
|
||||
}) && callers(spot) == Callers::None
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
|
||||
@@ -128,3 +128,45 @@ fn a_caller_other_than_the_small_blind_leaves_the_tables() {
|
||||
let s = spot(Variant::Nlhe, "Kh Qh", BIG_BLIND, h, 6.5, 1.5);
|
||||
assert!(!reason(&s).contains("CFR"), "{}", reason(&s));
|
||||
}
|
||||
|
||||
/// True heads-up: two seats, the button (seat 0) is the small blind and jams all-in, hero is
|
||||
/// the big blind on seat 1 with 10 bb.
|
||||
fn heads_up_jam(hole: &str) -> Spot {
|
||||
Spot {
|
||||
variant: Variant::Nlhe,
|
||||
big_blind: 1.0,
|
||||
seats: 2,
|
||||
hero_seat: 1,
|
||||
button_seat: Some(0),
|
||||
hero_cards: Card::parse_list(hole).expect("cards"),
|
||||
board: vec![],
|
||||
street: Street::Preflop,
|
||||
pot: 11.0,
|
||||
to_call: 9.0,
|
||||
hero_stack: 9.0,
|
||||
min_raise_to: None,
|
||||
max_raise_to: None,
|
||||
legal: vec![ActionKind::Fold, ActionKind::Call],
|
||||
allowed_sizes: None,
|
||||
villains: vec![Villain { seat: 0, stack: 10.0, folded: false, profile: None }],
|
||||
seed: 1,
|
||||
history: vec![
|
||||
record(0, SeenAction::PostSmallBlind, Some(0.5)),
|
||||
record(1, SeenAction::PostBigBlind, Some(1.0)),
|
||||
record(0, SeenAction::AllIn, Some(10.0)),
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_heads_up_big_blind_facing_a_button_jam_reads_the_call_table() {
|
||||
// Before the fix this fell to the pot-odds heuristic ("BB vs all-in, call top 13%") and
|
||||
// defended far too tight. The heads-up button is the small blind, so the blind-vs-blind
|
||||
// call/jam table (~38 % at 10 bb) must answer - calling hands the 13 % cutoff folded.
|
||||
let s = heads_up_jam("Jh Th");
|
||||
assert!(reason(&s).contains("CFR vs jam"), "{}", reason(&s));
|
||||
assert_eq!(advise(&s, &Thresholds::BASE).action, ChartAction::Call);
|
||||
assert_eq!(advise(&heads_up_jam("Ad 5d"), &Thresholds::BASE).action, ChartAction::Call);
|
||||
// Pure trash still folds - the defense is wide, not infinite.
|
||||
assert_eq!(advise(&heads_up_jam("7c 2d"), &Thresholds::BASE).action, ChartAction::Fold);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user