RERAISE_TIEFE-Diagnose: diag_welt DIAG_SCHALTER=reraise (an gegen aus je Hand gepaart, DIAG_BLIND=1 ohne Read); Messschalter RERAISE_BLUFF=erst (tiefere Fortsetzung behaelt den Bluffanteil der ersten) und RERAISE_ZUG=frei (Draws vom Staerkeschnitt ausgenommen)

nemesis-1 an-aus: -11,78 (Flop vs-raise Value-Reraise -> Call -13,9: der Schnitt entfernt zuerst die Luft, die tiefere Stufe liess nur den nackten Bluffanteil zu); BLUFF=erst +2,74, cbet-folder +15,64 -> +15,29; ZUG=frei n1 -2,90 aber cbet-folder nur +4,25 (verworfen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 07:21:08 +01:00
co-authored by Claude Opus 5.5
parent 950cfd53e7
commit e1bf3ef7f5
11 changed files with 268 additions and 8 deletions
+17 -2
View File
@@ -34,17 +34,32 @@ fn above(k: &Key, cut: &Key) -> bool {
fn meets(rules: &Rules, c: &Continuation, hand: &[Card], board: &[Card], step: usize, cut: Option<&Key>) -> Option<bool> {
glance(rules, hand, &board[..c.board_len.min(board.len())]).ok().map(|(made, draw)| {
(made >= c.min_made || (c.draws_continue && draw >= c.min_draw))
&& cut.is_none_or(|cut| key(rules, c, hand, board, step).is_some_and(|k| above(&k, cut)))
&& (cut.is_none_or(|cut| key(rules, c, hand, board, step).is_some_and(|k| above(&k, cut)))
|| (draws_free() && made < c.min_made && c.draws_continue && draw >= c.min_draw))
})
}
/// Messschalter (einmal gelesen) `RERAISE_ZUG=frei`: the strength cut of `top_share` narrows only the
/// made hands; a hand that continues by its draw alone stays (the made-first key ranked every semibluff
/// below the weakest made hand, so a flop re-raise range lost its draws - nemesis-1 raises by equity,
/// `diag_welt DIAG_SCHALTER=reraise` 15.11.: Flop vs-raise value re-raise -> call -13,9 bb/100).
fn draws_free() -> bool {
use std::sync::OnceLock;
static ON: OnceLock<bool> = OnceLock::new();
*ON.get_or_init(|| std::env::var("RERAISE_ZUG").as_deref() == Ok("frei"))
}
/// The strength cut of `top_share`: the key of the `ceil(share * alive)`-th strongest readable hand
/// (at least one hand stays); `None` without a share or with a share of 1 or more.
fn strength_cut(rules: &Rules, c: &Continuation, alive: &[Vec<Card>], board: &[Card], step: usize) -> Option<Key> {
let share = c.top_share.filter(|t| t.is_finite() && *t < 1.0)?;
let mut keys: Vec<Key> = alive.iter().filter_map(|h| key(rules, c, h, board, step)).collect();
if draws_free() {
keys.retain(|k| k.0 >= c.min_made);
}
keys.sort_by(|a, b| (b.0, b.1).cmp(&(a.0, a.1)).then(b.2.total_cmp(&a.2)));
let n = ((share.max(0.0) * alive.len() as f64).ceil() as usize).clamp(1, keys.len().max(1));
let pool = if draws_free() { keys.len() } else { alive.len() };
let n = ((share.max(0.0) * pool as f64).ceil() as usize).clamp(1, keys.len().max(1));
keys.get(n - 1).copied()
}