ANGRIFF_FOLD=1 (Messschalter, aus = bitgleich): Fold-Reads nicht verdienter Stile kommen als stilloser Profil-Rest (fold_only) durch read_gate in den Angriff; Called-Zweig gegen die staerksten 1-fold der Range; Bluff-Groessen bis VALUE_BAND
Probe: C-Bet-Haeufigkeit bei Fold-Read >= 0,45 von 17,8 % auf 81-92 %; blind unveraendert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+30
-1
@@ -11,6 +11,7 @@
|
||||
//! loose table, may never tip us into a worse decision.
|
||||
|
||||
use crate::exploit::style::{classify, Style};
|
||||
use crate::exploit::profile::Profile;
|
||||
use crate::game::{Spot, Villain};
|
||||
|
||||
/// How much of a read's adjustment each opponent style has EARNED on the ladder — the measured right
|
||||
@@ -64,9 +65,37 @@ pub fn gate_reads(spot: &Spot) -> Spot {
|
||||
.villains
|
||||
.iter()
|
||||
.map(|v| Villain {
|
||||
profile: v.profile.filter(|p| exploit_worthy(classify(p))),
|
||||
profile: v.profile.and_then(|p| if exploit_worthy(classify(&p)) { Some(p) } else { fold_reads(&p) }),
|
||||
..v.clone()
|
||||
})
|
||||
.collect();
|
||||
Spot { villains, ..spot.clone() }
|
||||
}
|
||||
|
||||
/// Messschalter (einmal gelesen): `ANGRIFF_FOLD=1` laesst von einem nicht verdienten Stil (Regular,
|
||||
/// Nit, LAG) die Fold-Reads durch - foldToBet (gepoolt und je Strasse) und foldToCbet - als
|
||||
/// stilloses Profil (`Profile::fold_only`, `classify` = Unknown): kein Stil-Shift, nur die
|
||||
/// Fold-Wahrscheinlichkeit von Heros Einsaetzen (`exploit::table_fold`). Gegen die Mehrstrassen-Kosten
|
||||
/// starker Caller (Befund Nit-Leck) spielt der Called-Zweig dann gegen die staerksten 1 - fold der
|
||||
/// Range (`exploit::call_floor`). Befund 15.11. (`diag_welt DIAG_READ=1`): jeder NL2-Read klassiert
|
||||
/// Regular und lief im Angriff blind (pool-nl2 Read − blind +1,4 bb/100, C-Bet bitgleich bei jedem
|
||||
/// Fold-Read). Vorgabe: aus (alt, bit-identisch).
|
||||
pub fn fold_attack_enabled() -> bool {
|
||||
use std::sync::OnceLock;
|
||||
static ON: OnceLock<bool> = OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("ANGRIFF_FOLD").as_deref() == Ok("1"))
|
||||
}
|
||||
|
||||
/// The fold reads of an untrusted profile as a style-less profile, when `ANGRIFF_FOLD` is on and it
|
||||
/// carries one; otherwise `None` (blind, as before).
|
||||
fn fold_reads(p: &Profile) -> Option<Profile> {
|
||||
let any = p.fold_to_bet.is_some() || p.fold_to_cbet.is_some() || p.street_fold_to_bet.iter().any(Option::is_some);
|
||||
(fold_attack_enabled() && any).then(|| Profile {
|
||||
fold_to_bet: p.fold_to_bet,
|
||||
street_fold_to_bet: p.street_fold_to_bet,
|
||||
fold_to_cbet: p.fold_to_cbet,
|
||||
confidence: p.confidence,
|
||||
fold_only: true,
|
||||
..Profile::default()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user