//! 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 }