Files
pokerfreak/src/exploit/call_floor.rs
T
mmintelandClaude Opus 5.5 6b3b3d501e Flussleck: zwei River-Fehler aus dem Live-Lauf 16.11. abends im Kern behoben (Schalter, aus = bitgleich)
RUF_ALLIN=1: called_equity simuliert die All-in-Groesse mit, die REST_STACK hinzufuegt
(vorher fiel der Call-Anteil des Jams auf den Anteil gegen die ganze Range zurueck, 0,678).
RUF_OBEN=river: am River zahlt die staerkste (1-Fold)-Spitze statt Boden plus Zufall.
WERT_BRETT=river: River-Boden der Wett-Range als Staerke-Perzentil auf dem echten Brett
(exploit/brett_floor.rs) statt Handklasse; Vierflush-Brett: Strasse 0,35 -> 0,16 Equity.

Pflichtfaelle: Live 10/16, Kandidat 12/16, 178854100443 CHECK und 178870300411 FOLD behoben,
kein alter Fall verloren. BEKANNTE_SCHALTER ergaenzt. Volles Tor fl-* laeuft gg. ps2-*-an.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:50:46 +01:00

49 lines
2.4 KiB
Rust

use super::fold_chance::fold_chance;
use super::made_ladder::rung;
use super::range_spec::Continuation;
use super::size_notch::size_notch;
use super::style_rung::style_rung;
use crate::game::{Street, Villain};
/// Rung of the weakest hand that calls a bet, per street (flop, turn, river) on
/// `made_ladder`: bottom pair on flop and turn, middle pair on the river.
pub const CALL_RUNG: [i32; 3] = [1, 1, 2];
/// What a villain continues with when hero bets `ratio` pots on `street`: the calling
/// floor moved by the size (`size_notch`) and the villain's style (`style_rung`); draws
/// call on flop and turn. This is the range the called branch of a bet is played against.
///
/// It is as wide as the villain calls: `continue_share` = 1 - their fold chance to this bet
/// (`fold_chance`, the same number the fold branch uses; `facing_raise` when hero raises a
/// bet). A calling station that calls 80 % calls with more than the hands above the floor.
pub fn call_continuation(villain: &Villain, street: Street, ratio: f64, facing_raise: bool) -> Continuation {
let slot = (street as usize).clamp(1, 3) - 1;
Continuation {
board_len: street.board_len(),
min_made: rung(CALL_RUNG[slot], size_notch(Some(ratio)) + style_rung(villain)),
draws_continue: street != Street::River,
min_draw: crate::read::draw::Draw::Gutshot,
bluff_share: 0.0,
continue_share: Some(1.0 - fold_chance(villain.profile.as_ref(), ratio, facing_raise)),
top_share: None,
min_strength: None,
}
}
/// `call_continuation` against a style-less fold read (`Profile::fold_only`, `ANGRIFF_FOLD`): whoever
/// calls holds the strongest `1 - fold` of the range (Bayes for a caller who continues by strength),
/// not the calling floor topped up with random hands - the multi-street cost of a called bluff into
/// a strong range (Befund Nit-Leck) is priced into the called branch.
pub fn top_call_continuation(villain: &Villain, street: Street, ratio: f64, facing_raise: bool) -> Continuation {
Continuation {
board_len: street.board_len(),
min_made: crate::read::made::Made::Air,
draws_continue: true,
min_draw: crate::read::draw::Draw::None,
bluff_share: 0.0,
continue_share: None,
top_share: Some(1.0 - fold_chance(villain.profile.as_ref(), ratio, facing_raise)),
min_strength: None,
}
}