Compare commits

...
Author SHA1 Message Date
mmintelandClaude Opus 5.5 a768057e5c Sicherung 01.12.: ungesicherte Dateien aus Worktree D:\Projects\pokerfreak\.claude\worktrees\agent-a1e73576494a60631 (Zweig worktree-agent-a1e73576494a60631, HEAD 1738208b)
3 Dateien. Nicht enthalten: 0 Dateien (Bau, Binaer, > 25 MB, archiv/lauf, Spuren echter Haende), 0 Loeschungen nicht nachgezogen. Der Worktree selbst ist unveraendert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:36:22 +01:00
3 changed files with 733 additions and 597 deletions
+36
View File
@@ -0,0 +1,36 @@
//! One opponent, Memory read only: the measurement cell of the turn-veto A/B. The configuration is
//! switched by environment (`TURN_VETO=0` off, `TURN_BUCKET=strength` legacy draw-blind buckets,
//! `TURN_PER_STREET=0` pooled belief aggression), so independent processes over the same seed and
//! deals are paired and can run in parallel.
//!
//! Run: `cargo run --release --bin turn_veto_ab <opp> [deals]` with opp in
//! n1 n2 n3 fish reg nit maniac.
use rechner::sim::opponent::Opponent;
use rechner::sim::reader::{Rules, Style};
use rechner::sim::session::{measure, ReadMode, Setup};
const SEED: u64 = 0x5EED_0001;
const N1: Rules = Rules { call_margin: 0.215, raise_at: 0.587, bet_at: 0.548, open_at: 0.729, bluff: 0.068, size: 0.441 };
const N2: Rules = Rules { call_margin: 0.173, raise_at: 0.579, bet_at: 0.748, open_at: 0.800, bluff: 0.229, size: 0.996 };
const N3: Rules = Rules { call_margin: 0.396, raise_at: 0.769, bet_at: 0.615, open_at: 0.468, bluff: 0.261, size: 1.148 };
fn main() {
let mut args = std::env::args().skip(1);
let which = args.next().unwrap_or_else(|| "n1".into());
let deals: u32 = args.next().and_then(|s| s.parse().ok()).unwrap_or(2000);
let opponent = match which.as_str() {
"n1" => Opponent::Styled(N1),
"n2" => Opponent::Styled(N2),
"n3" => Opponent::Styled(N3),
"fish" => Opponent::Reader(Style::Fish),
"reg" => Opponent::Reader(Style::Reg),
"nit" => Opponent::Reader(Style::Nit),
"maniac" => Opponent::Reader(Style::Maniac),
other => panic!("unknown opponent {other}"),
};
let setup = Setup { players: 2, opponent, deals, stack_bb: 100.0, seed: SEED, read: ReadMode::Memory };
let m = measure(&setup);
println!("{which} Memory {:>+8.2} bb/100 ±{:>6.2} (raw {:>+8.2} ±{:>6.2}) deals {deals}", m.bb_per_100, m.ci95, m.raw_bb_per_100, m.raw_ci95);
}
+2 -1
View File
@@ -92,7 +92,8 @@ fn postflop(spot: &Spot, thresholds: &Thresholds, raw: &Spot, premium: f64) -> D
// the offline/value-function form, not a live fold-veto. The turn solver + per-street belief
// stay as tested primitives. See BEFUND-stage-b-turn-river-solver.md.
if premium <= 0.0 {
return super::river_subgame::fold_veto(raw, floored);
let after_river = super::river_subgame::fold_veto(raw, floored);
return super::turn_subgame::turn_fold_veto(raw, after_river);
}
floored
}
+695 -596
View File
File diff suppressed because it is too large Load Diff