Files
pokerfreak/src/exploit/call_floor.rs
T
mmintelandClaude Opus 5.5 34252c9b75 Eigene Wetten: NL2-Fold-Kurve auf eigene Einsaetze, Kandidat WETT_KURVE (aus)
12,5 Mio. NL2-Haende: der Pool foldet am River auf jede Groesse ueber dem
Bluff-Break-even, auf Fortsetzung/Lead weniger als nach Check-Check, auf
All-ins weniger als der Kern annimmt. Schalter WETT_KURVE=<Tabelle>[,river..]
(BEKANNTE_SCHALTER, aus = bitgleich) ersetzt die eine Kern-Kurve heads-up
nach dem Flop beim eigenen Einsatz in einen offenen Topf.

Tor (Kandidat ,river): echte River-Spots, versiegelte Gegner +3816 bb
[3215; 4479] exakt (+0,14 bb/100), Pflichtfaelle bestanden 35/43,
Eigen-Replay 68/2155 anders. Sim-Leiter und LBR eingereiht (ew-*), offen.
Nicht live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:35:03 +01:00

59 lines
2.9 KiB
Rust

use super::fold_chance::{fold_base, sized_fold_on};
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 - wett_fold(villain, street, ratio, facing_raise)),
top_share: None,
min_strength: None,
likelihood: None,
}
}
/// The fold chance the called branch is the complement of: `WETT_KURVE` where it applies (the same number the
/// fold branch `table_fold` uses), else the core's curve.
fn wett_fold(villain: &Villain, street: Street, ratio: f64, facing_raise: bool) -> f64 {
let p = villain.profile.as_ref();
super::wett_kurve::fold(p, super::fold_chance::fold_base_on(p, Some(street)), ratio, facing_raise)
.unwrap_or_else(|| sized_fold_on(fold_base(p), ratio, facing_raise, Some(street)))
}
/// `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 - wett_fold(villain, street, ratio, facing_raise)),
min_strength: None,
likelihood: None,
}
}