Files
pokerfreak/src/engine/thin_value.rs
T
mmintel 04c8e6d3e0 Tournaments: tables left alone by cash rules, break modelled; thin value on turn and river
- A tournament table (tournament type or tournament lobby) is never sat out, left or closed by
  the cash runner: session end, schedule pause, empty table, no channel, over the table count
  (tests/turniertisch_spec.py).
- Clone tournament gets a break (isTourneyOnBreak, no hands, level clock stops); the runner sits
  through it and plays on (tests/turnier_kette_spec.py).
- Medium hands may bet thin on the turn and the river when checked to and the favourite at the
  table; EV decides, held back inside the EV error, small sizes (tests/engine_thin_value.rs).
- archiv/mitschrieb/TURNIERE.md: what works in the clone, what is missing at the real client.
2026-11-05 17:11:50 +01:00

29 lines
1.4 KiB
Rust

//! Thin value bets with medium hands on the turn and the river (tests/engine_thin_value.rs).
//!
//! A medium hand (middle pair, top pair with a weak kicker) stays below the value bar of
//! `texture_stance` and used to check - into calling stations too, where betting is the money.
//! It may bet thin when the action is checked to it on the turn or the river, it is the favourite
//! at the table and the board lets a medium hand value-bet at all (`value_ok`: not wet, no
//! four-flush). Whether it really bets is the EV's call (`postflop::best`: the bet must beat the
//! check), with the called branch played against a calling range as wide as the villains call -
//! and a thin bet inside its EV error is held back (`postflop`), unlike a value raise.
//! Not on the flop: two cards to come are more than the one-street EV sees.
use super::effective::Effective;
use crate::game::Street;
use crate::read::made::Made;
use crate::read::tier::{tier, Tier};
/// The favourite at the table: a realised share of at least one half of the pot.
pub const THIN_VALUE_SHARE: f64 = 0.5;
/// May this hand bet for thin value? `free`: checking is legal (nobody has bet).
pub fn thin_value(eff: &Effective, made: Made, street: Street, free: bool) -> bool {
let late = matches!(street, Street::Turn | Street::River);
late && free
&& eff.raise_ok
&& eff.value_ok
&& tier(made) == Tier::Medium
&& eff.share >= THIN_VALUE_SHARE
}