Merge claude/faustregel-null (FAUSTREGEL=aus)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ QUELLE = os.environ.get("COINPOKER_KERN_QUELLE", os.path.join(BASE, ".."))
|
||||
SCHALTER_DATEI = os.path.join(BASE, "..", "betrieb", "kern_schalter.txt")
|
||||
# GEGNER_ZAEHLUNG=1 ist kein Kern-Schalter, sondern einer des Laeufers (betrieb/runner.py): die gezaehlten
|
||||
# Reads je Gegner gehen in die Profile. Er steht hier, damit er in der Arm-Marke jeder Hand steht.
|
||||
BEKANNTE_SCHALTER = ("MDF_UNREAD", "RAISE_DRAWS", "RAISE_PRIOR", "TURN_SPIEL", "GRUNDSTRATEGIE", "OPEN_JAM",
|
||||
BEKANNTE_SCHALTER = ("FAUSTREGEL", "MDF_UNREAD", "RAISE_DRAWS", "RAISE_PRIOR", "TURN_SPIEL", "GRUNDSTRATEGIE", "OPEN_JAM",
|
||||
"SOLVER_RIVER", "SOLVER_KERN", "SOLVER_TURN", "SOLVER_FLOP", "SOLVER_RIVER3", "SOLVER_TURN3", "SOLVER_FLOP3", "SOLVER3_OHNE", "SOLVER3_MS", "SOLVER3_ROHNE", "SOLVER3_FOHNE", "SOLVER3_TOHNE", "SOLVER3_FSPERRE", "SOLVER3_ALLE", "SOLVER3_FORM", "SOLVER3_POOL", "SOLVER3_LINIE", "ALLIN_EINSATZ", "ALLIN_RANGE",
|
||||
"RAKE_LIVE", "GEGNER_ZAEHLUNG", "GEGNER_SHOWDOWN", "GEGNER_RANGE", "GEGNER_BREIT",
|
||||
"GEGNER_POOL", "GEGNER_POOL_STUFE", "RERAISE_TIEFE", "RERAISE_BLUFF",
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# Bündel „faustregel-null“ (19./20.11.)
|
||||
|
||||
Owner-Auftrag: Postflop entscheidet zu 0 % die Faustregel. Bündel-Modus: alles zusammen bauen, einmal am Ende messen.
|
||||
Integrations-Branch `claude/faustregel-null`. Jeder Teil bleibt einzeln schaltbar; ist das Bündel negativ, wird per
|
||||
Schalter halbiert.
|
||||
|
||||
## Teile und Schalter
|
||||
|
||||
| Teil | Schalter | Branch | Stand |
|
||||
|---|---|---|---|
|
||||
| Fluss 2 (Messung: Rollouts, hero = echter Kern, Gegner = ranges_echt) | – | `claude/fn-fluss2` | Validierung gegen echte Ergebnisse läuft |
|
||||
| HU: Ausnahmen raus (Luft, Zug/Paar schwach), All-in, ungelesen | `SOLVER_KERN=river+turn+flop+allin=solver+eng+tgstark=breit+tgmarge=0.15`, `ALLIN_EINSATZ=bis:1.3/raise` | `claude/fn-hu` (a8039024) | HU 191/191 Solver, Pflicht 41/44 |
|
||||
| Mehrweg 3–6 Spieler, ohne Klassen-Ausschlüsse | `SOLVER_FLOP3=1;SOLVER_TURN3=1;SOLVER_RIVER3=1;SOLVER3_ALLE=1;SOLVER3_FORM=1;SOLVER3_FSPERRE=1;SOLVER3_MS=400` | `claude/fn-mehrweg` (b969bffa) | MW 0 Faustregel, Pflicht 40/44, Latenz max 984 ms |
|
||||
| Rückfall unter Zeitdruck (winziger Baum statt Heuristik) | `KERN_RUECKFALL=baum,zeit` | `claude/fn-rueckfall` (42f87132) | unter erzwungenem Zeitdruck 0/238, max 30 ms |
|
||||
| Faustregel postflop unerreichbar | `FAUSTREGEL=aus` | Integrations-Branch (86d57618) | – |
|
||||
|
||||
Offene Fehler (Regeln auf der Solver-Ausgabe, Ursache wird gesucht, `claude/fn-ursache`):
|
||||
- `SOLVER3_FORM`: Mehrweg-River checkt Drilling ~88 % auch ohne Restterm; Paar raist gegen Einsatz.
|
||||
- `SOLVER3_FSPERRE`: Mehrweg-Flop foldet Top-Paar gegen ≤ Pot.
|
||||
- `tgmarge=0.15`: HU-Turn callt 99 im Squeeze-Topf (nur an einem Pflichtfall eingestellt).
|
||||
|
||||
## Abdeckung (238 echte Anfragen, `kern_grund`)
|
||||
|
||||
| Arm | Faustregel |
|
||||
|---|---|
|
||||
| live | 97 |
|
||||
| Stufe 4b (finaler Arm) | 78 |
|
||||
| Bündel (alle Teile oben, Merge e62c77ca + fn-mehrweg) | **0** |
|
||||
|
||||
Bündel-Arm (über `betrieb/kern_schalter.txt`):
|
||||
`SOLVER_KERN=river+turn+flop+allin=solver+eng+tgstark=breit+tgmarge=0.15;ALLIN_EINSATZ=bis:1.3/raise;SOLVER_FLOP3=1;SOLVER_TURN3=1;SOLVER_RIVER3=1;SOLVER3_ALLE=1;SOLVER3_FORM=1;SOLVER3_FSPERRE=1;SOLVER3_MS=400;KERN_RUECKFALL=baum,zeit;FAUSTREGEL=aus`
|
||||
|
||||
Nicht im Bündel: Turnier-Spots mit ICM-Prämie und Omaha gehen weiter an die Heuristik (der Rückfall ist dort nicht
|
||||
verdrahtet). Die Heuristik-Codepfade werden nach positivem Bündel-Lauf gelöscht, nicht vorher: bis dahin ist
|
||||
`FAUSTREGEL=aus` der Halbierungsschalter.
|
||||
@@ -167,6 +167,12 @@ fn postflop(spot: &Spot, thresholds: &Thresholds, raw: &Spot, premium: f64) -> D
|
||||
if let Some(d) = super::rueckfall::entscheide(spot, &lists) {
|
||||
return d.with_equity(equity.share);
|
||||
}
|
||||
// FAUSTREGEL=aus (off by default): the rule of thumb is unreachable postflop; the fallback answers always.
|
||||
if super::rueckfall::ohne_faustregel() {
|
||||
if let Some(d) = super::rueckfall::entscheide_immer(spot, &lists) {
|
||||
return d.with_equity(equity.share);
|
||||
}
|
||||
}
|
||||
// Bounded exploitation of the non-station reads (`read_exploit`, switch GEGNER_BREIT, off).
|
||||
let vetoed = super::vermerk::ersetzt(&floored, super::river_subgame::fold_veto(raw, floored.clone()));
|
||||
return super::read_exploit::postflop(raw, &hand_read, vetoed);
|
||||
|
||||
@@ -656,6 +656,20 @@ pub fn entscheide(spot: &Spot, lists: &[Option<List>]) -> Option<Decision> {
|
||||
entscheide_mit(spot, lists, c)
|
||||
}
|
||||
|
||||
/// `FAUSTREGEL=aus` (Bündel faustregel-null, aus = bitgleich): postflop ist die Faustregel unerreichbar. Hat kein Solver
|
||||
/// geantwortet und greift `entscheide` nicht (Schalter aus oder `zeit` ohne Zeitdruck), antwortet trotzdem der Rückfall,
|
||||
/// mit der Konfiguration aus `KERN_RUECKFALL` ohne `zeit`, sonst mit der Vorgabe `baum`.
|
||||
pub fn ohne_faustregel() -> bool {
|
||||
static A: OnceLock<bool> = OnceLock::new();
|
||||
*A.get_or_init(|| std::env::var("FAUSTREGEL").as_deref() == Ok("aus"))
|
||||
}
|
||||
|
||||
/// Der Rückfall ohne Zeitbedingung (für `FAUSTREGEL=aus`).
|
||||
pub fn entscheide_immer(spot: &Spot, lists: &[Option<List>]) -> Option<Decision> {
|
||||
let c = cfg().cloned().or_else(|| parse("baum"))?;
|
||||
entscheide_mit(spot, lists, &Cfg { nur_zeit: false, ..c })
|
||||
}
|
||||
|
||||
pub fn entscheide_mit(spot: &Spot, lists: &[Option<List>], c: &Cfg) -> Option<Decision> {
|
||||
if !matches!(spot.street, Street::Flop | Street::Turn | Street::River) || spot.hero_cards.len() != 2 || spot.rules().hole_cards != 2 || spot.board.len() != spot.street.board_len() {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user