- ESC no longer triggers the emergency stop (an ESC in another app stopped the run at 20:29); stopping only via ctrl-opt-cmd-S or the stop button - a table whose program runs counts as open even when its window is not visible (other desktop, Cockpit without screen recording): no reopening, no giving up, correct table count; teardown and closing a full table work over the channel - Cockpit checks and requests the screen recording permission - gapless tiling (sicht/kacheln.py): tables fill the full height, the Cockpit bar takes the rest and never goes below its minimum width; own animated resize no longer stored as minimum - earlier today: top-up safety net, leave after the hand (sit out next hand), tournament lock, waitlist left on close, Cockpit start lock, warning throttle, preflop raise-war reading, Bomb Pot practice, tournament break and level-up on the stage - teacher core for the streamer mode (betrieb/lehrer.py, betrieb/grund_lesen.py) and its plan
23 lines
1.1 KiB
Rust
23 lines
1.1 KiB
Rust
//! The preflop situation of a spot - the raises from the hand history when it shows any.
|
|
//!
|
|
//! The chip counts alone cannot tell a raise war from an open: on 5.11.2026 a villain
|
|
//! min-re-raised again and again, hero had 3 bb to call each time and the chip heuristic read
|
|
//! "vs open" three times in a row. Likewise a big blind facing a min-raise looked like a limp.
|
|
//! The history counts the raises themselves; without raises in it, the chip heuristic stays.
|
|
|
|
use super::advise::pot_without_antes;
|
|
use super::first_raiser::raise_count;
|
|
use super::situation::{classify, Situation};
|
|
use crate::game::Spot;
|
|
|
|
/// What has happened in front of hero. All-in comes from the chips (hero's stack decides); one
|
|
/// raise in the preflop history is an open, more are a 3-bet or worse; with none, `classify`.
|
|
pub fn situation_of(spot: &Spot) -> Situation {
|
|
let by_chips = classify(spot.to_call, spot.big_blind, pot_without_antes(spot), spot.hero_stack);
|
|
match (by_chips, raise_count(spot)) {
|
|
(Situation::FacingAllIn, _) | (_, 0) => by_chips,
|
|
(_, 1) => Situation::FacingOpen,
|
|
_ => Situation::FacingThreeBetPlus,
|
|
}
|
|
}
|