Files
pokerfreak/src/cfr/run_plan.rs
T
mmintelandClaude Opus 5.5 fbb3c1312a Vorflop-CFR mit einem bis vier Verteidigern, Short-Deck-Charts belegt
Mehrere Verteidiger: Opener gegen die letzten k Plätze (k = 1..4), gleiche
Abstraktion, Chance-Sampling-CFR+ mit exaktem Card Removal, jede Annahme im
Kopf von generated_charts_multi.rs. Beleg: Abweichung gegen die
Ein-Verteidiger-Charts je Spot, Gegenprobe exakt (k <= 2) und gesampelt
(k = 3, 4), alle unter 0,01 bb.

Short Deck: Vollständigkeit aller Positionen und Randhände, alle
All-in-Entscheidungen gegen direkte Showdowns mit echten Karten geprüft
(0 falsch in 69 Knoten).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:05:55 +01:00

54 lines
1.9 KiB
Rust

//! What the generator runs: seeds, sample counts, iteration counts and the depth grids.
use super::seat::Seat;
/// Seed of the Monte-Carlo equity table.
pub const EQUITY_SEED: u64 = 0x504F_4B45_5246_5245;
/// Board runouts per class pair (about 14 000 pairs, 0.6 us per evaluation).
pub const EQUITY_SAMPLES: u32 = 60_000;
/// Seed handed to the CFR fold. Full-width CFR draws no random numbers, so it does not change
/// the result; it is recorded so a sampling variant stays reproducible.
pub const CFR_SEED: u64 = 0x4346_522B;
/// Two-player games (the small blind against the big blind).
pub const PUSH_FOLD_ITERATIONS: u32 = 8_000;
pub const OPEN_ITERATIONS: u32 = 20_000;
/// Three-player games (EP, MP, CO, BTN against both blinds). An iteration costs about 10 ms
/// (push / fold) and 45 ms (open) instead of well below 1 ms.
pub const PUSH_FOLD3_ITERATIONS: u32 = 4_000;
pub const OPEN3_ITERATIONS: u32 = 16_000;
pub fn push_fold_iterations(seat: Seat) -> u32 {
if seat == Seat::SmallBlind {
PUSH_FOLD_ITERATIONS
} else {
PUSH_FOLD3_ITERATIONS
}
}
pub fn open_iterations(seat: Seat) -> u32 {
if seat == Seat::SmallBlind {
OPEN_ITERATIONS
} else {
OPEN3_ITERATIONS
}
}
/// Multi-defender games (`multi_walk`): sampled CFR+ iterations (one deal each) and the deals
/// per pass of the sampled best-response check.
pub const MULTI_ITERATIONS: u32 = 2_000_000;
pub const MULTI_CHECK_SAMPLES: u32 = 200_000;
/// Effective stacks in bb.
pub const PUSH_FOLD_DEPTHS: [u8; 7] = [5, 8, 10, 12, 15, 20, 25];
pub const OPEN_DEPTHS: [u8; 3] = [20, 40, 100];
/// `(seat, depth)` of every push / fold spot, seat-major.
pub fn push_fold_plan() -> Vec<(Seat, u8)> {
Seat::ALL.iter().flat_map(|s| PUSH_FOLD_DEPTHS.iter().map(move |d| (*s, *d))).collect()
}
pub fn open_plan() -> Vec<(Seat, u8)> {
Seat::ALL.iter().flat_map(|s| OPEN_DEPTHS.iter().map(move |d| (*s, *d))).collect()
}