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:
@@ -103,7 +103,26 @@ fn raise_draw_floor() -> Draw {
|
||||
fn reraise_depth_enabled() -> bool {
|
||||
use std::sync::OnceLock;
|
||||
static ON: OnceLock<bool> = OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("RERAISE_TIEFE").as_deref() == Ok("1"))
|
||||
RERAISE_OVERRIDE.with(|o| o.get()).unwrap_or_else(|| *ON.get_or_init(|| std::env::var("RERAISE_TIEFE").as_deref() == Ok("1")))
|
||||
}
|
||||
|
||||
/// Messschalter (einmal gelesen) `RERAISE_BLUFF=erst`: the deeper continuation keeps the bluff share of
|
||||
/// the first (with its population prior) instead of the plain size share. The strength cut removes the
|
||||
/// air first, so the deeper step alone sets how many bluffs a re-raise range holds (nemesis-1, 15.11.).
|
||||
fn reraise_bluff_first() -> bool {
|
||||
use std::sync::OnceLock;
|
||||
static ON: OnceLock<bool> = OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("RERAISE_BLUFF").as_deref() == Ok("erst"))
|
||||
}
|
||||
|
||||
thread_local! {
|
||||
static RERAISE_OVERRIDE: std::cell::Cell<Option<bool>> = const { std::cell::Cell::new(None) };
|
||||
}
|
||||
|
||||
/// Diagnostics only (`diag_welt DIAG_SCHALTER=reraise`): force `RERAISE_TIEFE` on or off on this thread,
|
||||
/// `None` = the environment switch.
|
||||
pub fn set_reraise_depth_override(on: Option<bool>) {
|
||||
RERAISE_OVERRIDE.with(|o| o.set(on));
|
||||
}
|
||||
|
||||
/// Raise-facing-a-bet frequency without a read: the pool value (anchor of the counted read,
|
||||
@@ -182,8 +201,12 @@ fn on_street(
|
||||
let k = aggressions_on(&spot.history, street, villain.seat);
|
||||
let deeper = (reraise_depth_enabled() && k >= 2).then_some(()).and(first).map(|c| Continuation {
|
||||
top_share: Some(reraise_share(villain, k)),
|
||||
bluff_share: own_aggression(&spot.history, ratios, street, villain.seat)
|
||||
.map_or(0.0, |(_, ratio)| bluff_share(villain.profile.as_ref(), ratio, street)),
|
||||
bluff_share: if reraise_bluff_first() {
|
||||
c.bluff_share
|
||||
} else {
|
||||
own_aggression(&spot.history, ratios, street, villain.seat)
|
||||
.map_or(0.0, |(_, ratio)| bluff_share(villain.profile.as_ref(), ratio, street))
|
||||
},
|
||||
..c
|
||||
});
|
||||
first.into_iter().chain(deeper).collect()
|
||||
|
||||
Reference in New Issue
Block a user