Cockpit and runner 5.11. late: no ESC stop, hidden tables stay open, gapless tiling, teacher core
- 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
This commit is contained in:
@@ -12,7 +12,8 @@ use super::position::Position;
|
||||
use super::seat_position::seat_position;
|
||||
use super::push_chart::push_cutoff;
|
||||
use super::reason::describe;
|
||||
use super::situation::{classify, Situation};
|
||||
use super::situation::Situation;
|
||||
use super::situation_of::situation_of;
|
||||
use super::width_factor::width_factor;
|
||||
use crate::exploit::steal_width::steal_width;
|
||||
use crate::exploit::thresholds::Thresholds;
|
||||
@@ -122,7 +123,7 @@ fn from_equilibrium(
|
||||
|
||||
/// The pot minus the antes the history names: antes are dead money, not action, and six of them
|
||||
/// (2.46 bb first in, measured) would read as a limp. Without records the pot stays as it is.
|
||||
fn pot_without_antes(spot: &Spot) -> f64 {
|
||||
pub(crate) fn pot_without_antes(spot: &Spot) -> f64 {
|
||||
let antes: f64 = spot
|
||||
.history
|
||||
.iter()
|
||||
@@ -145,7 +146,7 @@ fn pot_without_antes(spot: &Spot) -> f64 {
|
||||
pub fn advise(spot: &Spot, thresholds: &Thresholds) -> PreflopPlan {
|
||||
let hand = percentile(spot.variant, &spot.hero_cards);
|
||||
let pos = seat_position(spot, spot.hero_seat);
|
||||
let situation = classify(spot.to_call, spot.big_blind, pot_without_antes(spot), spot.hero_stack);
|
||||
let situation = situation_of(spot);
|
||||
let depth = effective_stack_bb(spot);
|
||||
let scale = scale_for(spot, situation, thresholds);
|
||||
let row = cutoffs(spot, situation, depth, scale);
|
||||
|
||||
@@ -37,4 +37,5 @@ pub mod seat_position;
|
||||
pub mod short_deck_percentile;
|
||||
pub mod short_deck_ranking;
|
||||
pub mod situation;
|
||||
pub mod situation_of;
|
||||
pub mod width_factor;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
//! 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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user