Acceptance 5.11.: channel play without AFK, quiet focus, working Cockpit, stronger play

- Practice tables: 20-min session 54/54 turns at the server, control session 28 turns,
  0 timeouts; stage: 3 tables, two rounds each, clean teardown.
- Never let the clock run: an engine abstention becomes check or fold (nie_verstreichen).
- Mittler join in a fixed order (kill the duplicate, then announce), a mittler ends with its
  game, the laufwache opens no tables, stop waits for the runner to stand up.
- Focus: no lobby connections from HUD, probes or layout; "Focus Window on Turn" off.
- Tables: disconnected or sitting-out opponents do not count; a table without channel is
  closed and avoided after 45 s; the join event keeps the writer's pid (strict invariants).
- Geldwache: same room list as the runner, the table's own report, stand up before closing.
- Engine: the small blind completes the top 65 % against limpers (price per fair share);
  the calling range of a bet is as wide as the villain calls - value bets into stations.
- Cockpit: the source tree never comes from SHELL; one operating set for laufwache and
  Cockpit (sicht/start.py --client, ServerStart).
- Project lives in ~/Projects/pokerfreak (kern was a detour).
This commit is contained in:
2026-11-05 16:10:43 +01:00
parent 2c4816c423
commit 9c79d8236b
98 changed files with 4635 additions and 485 deletions
+7 -1
View File
@@ -1,3 +1,4 @@
use super::fold_chance::fold_chance;
use super::made_ladder::rung;
use super::range_spec::Continuation;
use super::size_notch::size_notch;
@@ -11,12 +12,17 @@ const CALL_RUNG: [i32; 3] = [1, 1, 2];
/// What a villain continues with when hero bets `ratio` pots on `street`: the calling
/// floor moved by the size (`size_notch`) and the villain's style (`style_rung`); draws
/// call on flop and turn. This is the range the called branch of a bet is played against.
pub fn call_continuation(villain: &Villain, street: Street, ratio: f64) -> Continuation {
///
/// It is as wide as the villain calls: `continue_share` = 1 - their fold chance to this bet
/// (`fold_chance`, the same number the fold branch uses; `facing_raise` when hero raises a
/// bet). A calling station that calls 80 % calls with more than the hands above the floor.
pub fn call_continuation(villain: &Villain, street: Street, ratio: f64, facing_raise: bool) -> Continuation {
let slot = (street as usize).clamp(1, 3) - 1;
Continuation {
board_len: street.board_len(),
min_made: rung(CALL_RUNG[slot], size_notch(Some(ratio)) + style_rung(villain)),
draws_continue: street != Street::River,
bluff_share: 0.0,
continue_share: Some(1.0 - fold_chance(villain.profile.as_ref(), ratio, facing_raise)),
}
}
+5
View File
@@ -15,12 +15,17 @@ pub struct RangeSpec {
/// `min_made` at that point stay in — plus drawing hands when `draws_continue` — plus
/// a bluff fraction: hands below the floor are admitted so that they make up
/// `bluff_share` of what passes (`engine::range_filter`). 0 = a pure value range.
///
/// `continue_share`, when set, is how much of the range continues in all (a villain's call
/// frequency against hero's bet, `exploit::call_floor`): the floor hands stay, and hands below
/// the floor are admitted until the range is that wide; `bluff_share` is then not used.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Continuation {
pub board_len: usize,
pub min_made: Made,
pub draws_continue: bool,
pub bluff_share: f64,
pub continue_share: Option<f64>,
}
impl RangeSpec {
+1
View File
@@ -111,6 +111,7 @@ fn on_street(
min_made,
draws_continue,
bluff_share,
continue_share: None,
})
}