Files
pokerfreak/src/sizing/preflop.rs
T
mmintelandClaude Opus 5.5 460294fb22 Vorflop an die echte NL2-Population: Kandidat VORFLOP_POP=dreibet,iso (aus)
11,3 Mio. CoinPoker-NL2-Haende (nur Aggregate), Spieler-Holdout, EV ueber gemessene
Fortsetzungen. Schalter (aus = bitgleich, in BEKANNTE_SCHALTER): Blind-3-Bet gegen EP/MP 3x,
gegen CO/BTN 4x das Open (bisher 1,5-2,4x: 3 x to_call ohne eigenen Blind), Iso in Position
5 bb + 1 je weiteren Limper (bisher 2,5 bb). VORFLOP_BAND, Iso aus den Blinds, HU unveraendert.

Tor: Eigen-Replay 1130 Spots 0 Aktionen anders (nur Groessen), Pflichtfaelle 35/43 wie live,
Mehrweg-LBR -16,65 +-32,05 (nicht schlechter), 6-max-Leiter +16,87 +-3,28 ohne schlechtere
Position. Nicht live geschaltet. Bericht messung/vorflop_population/BERICHT.md.

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

40 lines
1.5 KiB
Rust

use super::fit::fit;
use crate::preflop::effective_stack::effective_stack_bb;
use crate::game::Spot;
/// Open size in big blinds when nobody has raised yet.
pub const OPEN_BB: f64 = 2.5;
/// Multiplier on the bet faced for a re-raise.
pub const RERAISE_FACTOR: f64 = 3.0;
/// Between `PUSH_FOLD_BB` and this depth (bb) the sizes are smaller.
pub const SHORT_BAND_BB: f64 = 40.0;
/// Smaller open (bb) and re-raise factor in the 15 to 40 bb band.
pub const SHORT_OPEN_BB: f64 = 2.0;
pub const SHORT_RERAISE_FACTOR: f64 = 2.5;
const PUSH_FOLD_BB: f64 = 15.0;
/// Wished preflop raise-to: `2.5 bb` when only blinds/limps are faced
/// (`to_call <= big_blind`), else `3 x` the amount to call; `2 bb` and `2.5 x` for stacks
/// of 15 to 40 bb.
pub fn raise_target(spot: &Spot) -> f64 {
let depth = effective_stack_bb(spot);
let short = depth > PUSH_FOLD_BB && depth < SHORT_BAND_BB;
// Schalter VORFLOP_POP (aus = bitgleich): 3-Bet als Vielfaches des Opens, Iso nach Limperzahl.
if depth >= SHORT_BAND_BB {
if let Some(t) = crate::preflop::vorflop_pop::ziel(spot) {
return t;
}
}
if spot.to_call <= spot.big_blind {
(if short { SHORT_OPEN_BB } else { OPEN_BB }) * spot.big_blind
} else {
(if short { SHORT_RERAISE_FACTOR } else { RERAISE_FACTOR }) * spot.to_call
}
}
/// The chart `Raise` as a legal size (bounds / allowed sizes applied).
pub fn raise_size(spot: &Spot) -> Option<f64> {
fit(spot, raise_target(spot))
}