D1e: Blockade-Analyse mit bb + Kanal s (Steal-Weite, 1,04 -> 1,71 %) + Kanal m (0 Zuege, aus)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -101,7 +101,7 @@ Eine Regel für Bankroll und Gesamt-Verlustdeckel über die 30 000 Hände fehlt
|
||||
| D1b | Gezählte Reads an den Kern: Zählung je Kennung mit echter Stichprobe in die Profile (`lesen/profil.py` `mit_zaehlung`), Schalter `GEGNER_ZAEHLUNG=1`; gezeigte River-Einsätze (`riverBluffShown`) zum River-Getriebe, eigener Schalter `GEGNER_SHOWDOWN=1` | Messregel 1a: Leiter mit Gedächtnis-Read im Draht-Format (`LESEN_DRAHT=hud` gegen `gezaehlt`) ohne Verlierer, LBR gepaart dünn gegen gezählt ≤ +5 bb/100; Replay echter Entscheidungen zeigt, was sich ändert | gebaut, beide Schalter aus. Replay 1345 echte Züge: 3 anders (0,2 %), Stil-Read anders in 238 von 516 Nach-Flop-Spots. Leiter + LBR eingereiht (`messung_zaehlung/`). **Wechselpunkt: Owner** |
|
||||
| D1c | Gedächtnis formt die Ranges des Solvers: `exploit::range_read` (Range-Kippung nach Lockerheit, Bluffanteil je Größe aus Straßen-Aggression und gezeigten River-Einsätzen, Fold je Straße, Vertrauen aus echter Stichprobe) → Kippung der Kombigewichte, festgelegter geglaubter Gegner, KL-Schranke λ aus Vertrauen. Schalter `GEGNER_RANGE=1`, aus. Schnittstelle mit solver-ueberall vereinbart (Orchestrator 14.11.) | LBR gepaart nicht schlechter jenseits des Rauschens; Leiter mit Gedächtnis-Read: Gewinn, kein Profil verliert | gebaut, zuerst im bestehenden River-Veto verdrahtet; Werte auf 634 echten Gegner-Spots plausibel. Leiter `range-an` + LBR `range-lbr-typ` eingereiht. Haken wandert in den Einstieg von solver-ueberall, sobald Stufe A steht |
|
||||
| D1d | Lesen breit: Ausbeutung auch gegen Nit, Maniac, Folder, passive Fische über begrenzte Kanäle (`engine::read_exploit`, Schalter `GEGNER_BREIT`, aus; C-Bet-Druck, Bluff-Veto, River-Bluff-Catch und Dünnwert über `river_br`, Light-3-Bet), jeder Read in einer KL-Vertrauensregion um den Blind-Wert | Messregel 1a: Gewinn gegen den Lese-Typ > 0, LBR-Anstieg ≤ 5 bb/100, Leiter ohne Verlierer | gebaut; Replay echter Züge: Lesen ändert 0,74 % (vorher 0,67 %), mit Gedächtnis-Draht (`profile.reads`) 1,04 %; Diagnose: limitiert NICHT durch Menge oder Schranke, sondern durch fehlende Kanäle (Steal 32 %, 3-Bet mit Spielern dahinter 16 %) und multiway (24 %); Micro-Pool (`GEGNER_POOL`) gebaut, ändert 0 Züge; Leiter- und LBR-Arme eingereiht |
|
||||
| D1e | Neue Lese-Kanäle, wo die Diagnose die Züge findet: (1) Steal gegen die Blinds über foldToSteal (Einzel + Pool), (2) Light-3-Bet mit Spielern dahinter (Opener allein im Topf, Rest noch nicht gehandelt), (3) Flop/Turn gegen Einsatz (Bluff-Catch über Aggression), (4) multiway nur defensiv. Je Kanal in der KL-Region, Pool als Anker bei dünner Stichprobe | Messregel 1a je Kanal; Replay-Anteil + Audit-Wert | vorgeschlagen (14.11. Diagnose) |
|
||||
| D1e | Neue Lese-Kanäle, wo die Diagnose die Züge findet: (1) Steal gegen die Blinds über foldToSteal (Einzel + Pool), (2) Light-3-Bet mit Spielern dahinter (Opener allein im Topf, Rest noch nicht gehandelt), (3) Flop/Turn gegen Einsatz (Bluff-Catch über Aggression), (4) multiway nur defensiv. Je Kanal in der KL-Region, Pool als Anker bei dünner Stichprobe | Messregel 1a je Kanal; Replay-Anteil + Audit-Wert | läuft (15.11.): Blockade-Tabelle mit bb fertig; (1) Steal `s` gebaut, Replay 1,04 → 1,71 %, Leiter+LBR eingereiht; (2) `m` gebaut, 0 Züge, verworfen; nächster Hebel nach Geld: postflop Check ohne C-Bet-Lage / gegen Einsatz Turn |
|
||||
| D2 | Priors aus echten Händen eichen (`lesen/eichung.py`), ab 200 Gegnern mit je ≥ 30 Chancen | κ-Intervalle endlich; ersetzt die gesetzten Anker | Werkzeug steht; 0 von 16 Reads am Tor (39 Gegner); vpip μ̂ 0,70 statt Anker 0,28 |
|
||||
| D3 | Gezeigte Hände verengen die Range-Annahme je Gegner | Vorhersage auf zurückgehaltenen Händen besser (Log-Loss) | Werkzeug steht; 5 echte gezeigte Hände, zu wenig |
|
||||
| D4 | Entscheidungs-Audit: jede echte River- und Turn-Entscheidung wird nachgerechnet, EV-Verlust je Entscheidung | Bericht je Woche; zeigt das größte Leck in echten Spots | Werkzeug steht (`bin/audit`); hatte die MDF-Boden-Calls schon markiert. **Wochenbericht läuft noch nicht** |
|
||||
|
||||
@@ -293,3 +293,6 @@ das E1-Tor erneut.
|
||||
| D1d Messungen | eingereiht (Warteschlange Live-Worktree): Leiter `breit-basis` (Linien-Reads `READS=cbet,3bet`, Schalter aus) gegen `breit-alle`, `breit-c`, `breit-b`, `breit-rw`, `breit-3`; LBR gepaart `breit-lbr-typ` gegen `zaehlung-lbr-typ-duenn`, `breit-lbr-nit-an`/`-aus`, `breit-lbr-maniac-an`/`-aus` (sicherer Read, 400 Hände = schlimmster Fall) | Tor Messregel 1a: Gewinn gegen den Lese-Typ > 0 im Intervall, LBR-Anstieg ≤ 5 bb/100, Leiter ohne Verlierer. Ein Verlierer-Kanal fällt einzeln |
|
||||
| D1d Diagnose: warum Lesen nur 1,04 % ändert (Replay 1345 echter Züge, Arm Gedächtnis+breit, `GEGNER_BREIT_DIAG` = erster Grund je Zug, `GEGNER_BREIT_ROH` = ohne Vertrauens-/KL-Schranke) | **Nicht die Stichprobe, nicht die Schranke.** Vertrauen unter 0,25 nur 0,45 % der Züge (Median der übrigen 0,73–0,90); ohne Schranke kippt genau 1 Zug mehr (1,04 → 1,12 %). **Es fehlt der Kanal** (~65 %) bzw. der Topf ist **multiway** (~24 %): Preflop zuerst rein 32,0 % (kein Steal-Kanal; `steal_width` sieht nur Station-Profile), Preflop gegen Open mit Spielern dahinter 15,9 % (Light-3-Bet verlangt EINEN lebenden Gegner, preflop fast nie wahr), Postflop multiway 7,7 %, Check ohne C-Bet-Lage 6,4 %, 3-Bet+ 4,8 %, Value-/Semi-Bet 4,5 %, Station (Heuristik nutzt schon) 4,5 %, f3 unter Preis 3,9 %, Limp 3,3 %, gegen Einsatz Flop/Turn 5,8 %, River-Check Luft 2,8 %; in Kanal-Lagen ohne Feuern: c 2,9 % (Read unauffällig 1,4 %, Hand zu stark 0,7 %), r/w 1,5 %. Nebenbefund: das Vertrauen ist hände-basiert (vpip) und gilt auch für dünne Linien-Reads (foldToCbet) | `messung_zaehlung/replay_diag_ergebnis.txt`; Hebel = neue Kanäle (D1e), nicht weitere Schranken-Lockerung |
|
||||
| D1d Pool-Ausnutzung Micro (`exploit::pool`, Schalter `GEGNER_POOL=<d2_priors.json>`, aus; Stufe aus dem Big Blind oder `GEGNER_POOL_STUFE`) | Pool als Read mit eigenem Vertrauen κ/(κ+S), der Einzel-Read übernimmt mit wachsender Stichprobe (Pool ersetzt den Anker im Posterior). Nur passive Achsen UND nur Reads, deren CV-Untergrenze gegen den Anker > 0 ist (≥ 50 Spieler): für NL0.01-0.02 heute foldToBet 0,55 (κ 19) und foldToCbet 0,49 (κ 8,3); foldToThreeBet 0,40, Straßen-Folds fallen am Tor. Aggressor-Wache vor dem Pool (Aggression ≥ 0,45 bei Vertrauen ≥ 0,25 oder pfr ≥ 0,30). Achtung: echtes Micro hat vpip 0,32 (κ 10); die 0,67–0,70 sind die Übungstische (Spielgeld). **Replay: 0 zusätzliche Züge** (1,04 % mit und ohne Pool), also kein Audit-Spot. Die bewiesenen Pool-Werte liegen zu nah am Blind-Wert 0,45 für die begrenzten Kanäle | eingereiht: Leiter `pool-basis`/`pool-an` (Stufe erzwungen, jeder Sim-Gegner bekommt den Pool), LBR gepaart `pool-lbr-{typ,leer,maniac}-{aus,an}`; Tor Messregel 1a. Live-Wirkung erst mit Kanälen für Steal/3-Bet/multiway |
|
||||
| D1e Blockade-Analyse mit bb (1345 echte Züge, 1310 einer Hand zugeordnet, 642 Hände netto +66 bb; `messung_zaehlung/blockade.py`) | Gruppen: **kein Kanal 65,4 %** (Topf 8101 bb, Hände −18 bb), **Struktur multiway 23,6 %** (2180 bb, +135), Kanal-Prüfung (Read/Hand/Preis) 7,9 % (743 bb, −110), Solver-Pfad River-BR 1,5 % (664 bb, 33 bb/Zug, −111), **wirksam 1,04 %** (157 bb, +16), Vertrauen/Stichprobe 0,5 %, Klasse 0,1 %. Nach Geld: zuerst rein 32 % der Züge aber nur 1,5 bb Topf/Zug (649 bb); die großen Töpfe liegen postflop: gegen Einsatz Turn 34 bb/Zug, River-BR 36, 3-Bet+ 20, Flop gegen Einsatz 21. Größte Hand-Verluste ohne Kanal: Check ohne C-Bet-Lage −173 bb, River-Check Luft −162, zuerst rein −124 (Hand-Netto, verrauscht) | `messung_zaehlung/blockade_ergebnis.txt` |
|
||||
| D1e Kanal `s` Steal-Weite (`GEGNER_BREIT=…s`, aus; `1` bleibt c b r w 3) | `steal_width` aus dem RAW-Spot: Nicht-Stations über foldToBet in der KL-Region, Stations wie bisher. Replay: **1,04 → 1,71 %** (+9 Züge, alle FOLD→RAISE, Weite 1,02–1,18). Kein Audit (Audit rechnet nur Turn/River) | eingereiht: Leiter `steal-basis`/`steal-an`, LBR `steal-lbr-{typ,maniac,nit}-{aus,an}`; Tor Messregel 1a |
|
||||
| D1e Kanal `m` Light-3-Bet mit Spielern dahinter (`GEGNER_BREIT=…m`, aus) | Opener allein im Topf, Rest noch nicht gehandelt; f3 × 0,9 je Spieler dahinter gegen den Preis. Replay: **0 Züge** (die f3-Reads um 0,40 reichen nach dem Abschlag nie an ~0,6 Preis). Heads-up-Leiter/LBR sehen den Pfad nicht (bit-identisch) | nicht weiter verfolgt; bleibt aus |
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Blockade-Analyse auf echten Spots: je Entscheidung, ob das Gegner-Lesen wirkt, vorhanden-aber-geblockt ist
|
||||
(Vertrauen, Klasse, Struktur, Kanal-Pruefung/Solver-Pfad) oder gar keinen Kanal hat - mit Anzahl und bb.
|
||||
|
||||
Eingabe: `replay_breit.py --diag --diag-aus <jsonl>` (Grund je Zug, Arm Gedaechtnis+breit) und
|
||||
`archiv/lauf/haende.jsonl` des Live-Worktrees. Zug -> Hand: gleicher Raum, erste Hand, deren Ende (UTC) nach dem
|
||||
Zug liegt (Shadow-Zeit ist Ortszeit, --versatz Stunden, Standard 1 = MEZ).
|
||||
|
||||
bb-Spalten:
|
||||
Topf bb Summe des Topfs (in Big Blinds) im Moment der Entscheidung - was auf dem Spiel stand
|
||||
Hand bb Netto der beruehrten Haende (jede Hand je Grund einmal) - was diese Haende gewannen/verloren
|
||||
|
||||
python messung_zaehlung/blockade.py messung_zaehlung/blockade_zuege.jsonl <live>/archiv/lauf/haende.jsonl
|
||||
"""
|
||||
import bisect
|
||||
import collections
|
||||
import datetime as dt
|
||||
import json
|
||||
import sys
|
||||
|
||||
GRUPPEN = [
|
||||
("wirksam", lambda g: g in ("breit:feuert", "geaendert ohne Kanal (Profil-Draht der Heuristik)")),
|
||||
("geblockt: Vertrauen/Stichprobe", lambda g: "vertrauen<" in g or g.endswith(":schranke")),
|
||||
("geblockt: Klasse (Station, Heuristik)", lambda g: g.endswith(":station")),
|
||||
("geblockt: Struktur (multiway/kein Opener)", lambda g: g.endswith("multiway") or g.endswith("nicht-opener")),
|
||||
("geblockt: Street/Modus (ICM)", lambda g: g == "icm"),
|
||||
("geblockt: Solver-Pfad (River-BR kein Vorteil)", lambda g: "br-kein-vorteil" in g),
|
||||
("geblockt: Kanal-Pruefung (Read/Hand/Preis)", lambda g: g.startswith(("post:c:", "post:b:", "pre:open:"))),
|
||||
("geblockt: kein Profil", lambda g: g.endswith("kein-profil")),
|
||||
("nicht vorhanden (kein Kanal)", lambda g: True),
|
||||
]
|
||||
|
||||
|
||||
def gruppe(g):
|
||||
return next(n for n, f in GRUPPEN if f(g))
|
||||
|
||||
|
||||
def utc(s):
|
||||
return dt.datetime.fromisoformat(s.replace("Z", "+00:00")).replace(tzinfo=None)
|
||||
|
||||
|
||||
def main():
|
||||
zuege_pfad, haende_pfad = sys.argv[1], sys.argv[2]
|
||||
versatz = float(sys.argv[3]) if len(sys.argv) > 3 else 1.0
|
||||
haende = collections.defaultdict(list)
|
||||
with open(haende_pfad, encoding="utf-8") as f:
|
||||
for z in f:
|
||||
try:
|
||||
h = json.loads(z)
|
||||
except ValueError:
|
||||
continue
|
||||
if h.get("spielart") == "NLHE" and h.get("bb") and h.get("netto") is not None and h.get("zeit"):
|
||||
haende[h["raum"]].append((utc(h["zeit"]), h["hand"], h["netto"] / h["bb"]))
|
||||
for r in haende.values():
|
||||
r.sort()
|
||||
zuege = [json.loads(z) for z in open(zuege_pfad, encoding="utf-8") if z.strip()]
|
||||
n = len(zuege)
|
||||
je = collections.defaultdict(lambda: {"n": 0, "topf": 0.0, "haende": {}, "geaendert": 0})
|
||||
zugeordnet = 0
|
||||
for z in zuege:
|
||||
bb = z.get("bb") or 1.0
|
||||
t = dt.datetime.fromisoformat(z["zeit"]) - dt.timedelta(hours=versatz)
|
||||
liste = haende.get(z["raum"], [])
|
||||
i = bisect.bisect_left(liste, (t, "", -1e18))
|
||||
hand = liste[i] if i < len(liste) and (liste[i][0] - t).total_seconds() < 600 else None
|
||||
zugeordnet += hand is not None
|
||||
for schluessel in (("G", gruppe(z["grund"])), ("R", z["grund"])):
|
||||
e = je[schluessel]
|
||||
e["n"] += 1
|
||||
e["topf"] += (z.get("pot") or 0.0) / bb
|
||||
e["geaendert"] += z.get("leer") != z.get("arm")
|
||||
if hand:
|
||||
e["haende"][hand[1]] = hand[2]
|
||||
print(f"{n} Zuege, {zugeordnet} einer Hand zugeordnet ({100.0 * zugeordnet / max(n, 1):.1f} %)")
|
||||
alle_haende = {}
|
||||
for (k, _), e in je.items():
|
||||
if k == "G":
|
||||
alle_haende.update(e["haende"])
|
||||
print(f"{len(alle_haende)} Haende, netto {sum(alle_haende.values()):+.1f} bb\n")
|
||||
|
||||
def tabelle(k, titel):
|
||||
print(f"{titel:58s} {'Zuege':>6s} {'Anteil':>8s} {'Topf bb':>9s} {'Topf/Zug':>9s} {'Haende':>7s} {'Hand bb':>9s}")
|
||||
zeilen = sorted(((g, e) for (kk, g), e in je.items() if kk == k), key=lambda x: -x[1]["n"])
|
||||
for g, e in zeilen:
|
||||
print(f"{g[:58]:58s} {e['n']:6d} {100.0 * e['n'] / n:7.2f} % {e['topf']:9.1f} {e['topf'] / e['n']:9.2f} "
|
||||
f"{len(e['haende']):7d} {sum(e['haende'].values()):+9.1f}")
|
||||
print()
|
||||
|
||||
tabelle("G", "Gruppe")
|
||||
tabelle("R", "Grund")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,43 @@
|
||||
1345 Zuege, 1310 einer Hand zugeordnet (97.4 %)
|
||||
642 Haende, netto +66.1 bb
|
||||
|
||||
Gruppe Zuege Anteil Topf bb Topf/Zug Haende Hand bb
|
||||
nicht vorhanden (kein Kanal) 880 65.43 % 8101.0 9.21 471 -17.9
|
||||
geblockt: Struktur (multiway/kein Opener) 317 23.57 % 2179.5 6.88 228 +135.1
|
||||
geblockt: Kanal-Pruefung (Read/Hand/Preis) 106 7.88 % 742.5 7.00 100 -109.5
|
||||
geblockt: Solver-Pfad (River-BR kein Vorteil) 20 1.49 % 663.5 33.17 20 -111.0
|
||||
wirksam 14 1.04 % 157.0 11.21 14 +16.0
|
||||
geblockt: Vertrauen/Stichprobe 7 0.52 % 82.0 11.71 3 +3.5
|
||||
geblockt: Klasse (Station, Heuristik) 1 0.07 % 4.0 4.00 1 +38.0
|
||||
|
||||
Grund Zuege Anteil Topf bb Topf/Zug Haende Hand bb
|
||||
pre:zuerst-rein (kein Kanal; Steal-Weite nur vs Stations) 431 32.04 % 649.0 1.51 336 -124.0
|
||||
pre:open:multiway 214 15.91 % 1038.0 4.85 202 +111.0
|
||||
post:multiway 103 7.66 % 1141.5 11.08 47 +165.6
|
||||
post:check-ohne-cbet-lage (kein Kanal) 86 6.39 % 942.5 10.96 63 -172.5
|
||||
pre:3bet+ (kein Kanal) 64 4.76 % 1264.0 19.75 62 +211.0
|
||||
post:value/semi-bet (kein Kanal) 61 4.54 % 824.5 13.52 45 +17.0
|
||||
post:station (Heuristik nutzt schon) 60 4.46 % 966.5 16.11 23 +112.5
|
||||
pre:open:f3-unter-preis 52 3.87 % 206.0 3.96 51 +10.0
|
||||
pre:limp (kein Kanal) 44 3.27 % 121.0 2.75 42 +37.6
|
||||
post:gegen-einsatz-flop (kein Kanal) 42 3.12 % 877.0 20.88 39 -1.5
|
||||
post:river-check-luft (kein Kanal) 37 2.75 % 585.0 15.81 36 -162.0
|
||||
post:gegen-einsatz-turn (kein Kanal) 36 2.68 % 1210.0 33.61 33 +7.5
|
||||
post:c:read-unauffaellig 19 1.41 % 235.5 12.39 19 -6.0
|
||||
post:river-bet (kein Kanal) 15 1.12 % 325.0 21.67 13 +8.0
|
||||
post:r:br-kein-vorteil 13 0.97 % 463.5 35.65 13 -91.5
|
||||
pre:open:muell-fold 11 0.82 % 43.0 3.91 11 -4.0
|
||||
post:c:hand-zu-stark 10 0.74 % 66.5 6.65 10 -102.5
|
||||
pre:open:chart-raist-schon 8 0.59 % 30.0 3.75 8 -8.0
|
||||
geaendert ohne Kanal (Profil-Draht der Heuristik) 7 0.52 % 92.5 13.21 7 +13.0
|
||||
breit:feuert 7 0.52 % 64.5 9.21 7 +3.0
|
||||
post:w:br-kein-vorteil 7 0.52 % 200.0 28.57 7 -19.5
|
||||
post:vertrauen<0.25 6 0.45 % 69.0 11.50 2 +2.0
|
||||
post:c:kein-read 5 0.37 % 155.5 31.10 5 -1.5
|
||||
pre:all-in (kein Kanal) 2 0.15 % 253.0 126.50 2 +38.0
|
||||
post:c:schranke 1 0.07 % 13.0 13.00 1 +1.5
|
||||
post:sonst 1 0.07 % 13.0 13.00 1 +0.5
|
||||
post:b:read-zahlt-bluff 1 0.07 % 6.0 6.00 1 -0.5
|
||||
pre:open:station 1 0.07 % 4.0 4.00 1 +38.0
|
||||
post:river-gegen-einsatz-weiter (kein Kanal noetig) 1 0.07 % 70.5 70.50 0 +0.0
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
# Plan D1e Steal (read_exploit Kanal s, GEGNER_BREIT=cbrw3s; 1 = cbrw3 ohne s): Oeffnungsweite zuerst rein aus den vertrauensbegrenzten foldToBet-Reads der Spieler dahinter. Groesste Blockade (pre:zuerst-rein 32 %). python messung_engine/ab.py messung_zaehlung/arme/steal-basis messung_zaehlung/arme/steal-an
|
||||
steal-basis|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-leiter.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\arme\steal-basis 2000 4000 4 wert-sizer,polar,umgekehrt,textur-cbet,position,tanker,balanciert,cbet-folder,3bet-folder,check-raiser,gto,station,fish,reg,nit,maniac,nemesis-1,nemesis-2,nemesis-3,micro-passiv|LESEN_DRAHT=gezaehlt;MDF_UNREAD=0;READS=cbet,3bet;GEGNER_BREIT=cbrw3|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-an|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-leiter.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\arme\steal-an 2000 4000 4 wert-sizer,polar,umgekehrt,textur-cbet,position,tanker,balanciert,cbet-folder,3bet-folder,check-raiser,gto,station,fish,reg,nit,maniac,nemesis-1,nemesis-2,nemesis-3,micro-passiv|LESEN_DRAHT=gezaehlt;MDF_UNREAD=0;READS=cbet,3bet;GEGNER_BREIT=cbrw3s|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
# Steal, Messregel 1a LBR gepaart (aus = cbrw3, an = cbrw3s, gleiche Seeds): duenner Typ, Maniac, Nit (weitester Steal).
|
||||
steal-lbr-typ-aus|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-typ-aus.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3;LBR_PROFIL={"vpip":0.23,"pfr":0.16,"foldToBet":0.69,"hands":23,"aggression":0.33,"aggressionActions":2}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-lbr-typ-an|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-typ-an.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3s;LBR_PROFIL={"vpip":0.23,"pfr":0.16,"foldToBet":0.69,"hands":23,"aggression":0.33,"aggressionActions":2}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-lbr-maniac-aus|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-maniac-aus.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3;LBR_PROFIL={"vpip":0.42,"pfr":0.33,"foldToBet":0.3,"foldToCbet":0.3,"foldToThreeBet":0.35,"hands":400,"aggression":0.62,"aggressionActions":150,"riverAggression":0.6,"riverAggressionActions":40}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-lbr-maniac-an|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-maniac-an.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3s;LBR_PROFIL={"vpip":0.42,"pfr":0.33,"foldToBet":0.3,"foldToCbet":0.3,"foldToThreeBet":0.35,"hands":400,"aggression":0.62,"aggressionActions":150,"riverAggression":0.6,"riverAggressionActions":40}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-lbr-nit-aus|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-nit-aus.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3;LBR_PROFIL={"vpip":0.14,"pfr":0.11,"foldToBet":0.72,"foldToCbet":0.78,"foldToThreeBet":0.8,"hands":400,"aggression":0.25,"aggressionActions":120}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
steal-lbr-nit-an|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\bin\pokerbench-steal-lbr.exe|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091\messung_zaehlung\lbr\steal-lbr-nit-an.txt 2000|MDF_UNREAD=0;TURN_SPIEL=grund;GRUNDSTRATEGIE=D:\Projects\pokerfreak\.claude\worktrees\engine-lecks-angreifen-de7b88\daten;GEGNER_BREIT=cbrw3s;LBR_PROFIL={"vpip":0.14,"pfr":0.11,"foldToBet":0.72,"foldToCbet":0.78,"foldToThreeBet":0.8,"hands":400,"aggression":0.25,"aggressionActions":120}|D:\Projects\pokerfreak\.claude\worktrees\exploit-live-ec8091
|
||||
@@ -34,7 +34,7 @@ def kanal(antwort):
|
||||
DIAG = re.compile(r"diag:(.*?) conf=(\S+)")
|
||||
|
||||
|
||||
def diagnose(faelle, arme, arm="ged+breit"):
|
||||
def diagnose(faelle, arme, arm="ged+breit", aus=None):
|
||||
"""Grund -> Anteil: fuer jeden Zug der erste Grund, aus dem das Lesen nichts aendert (Arm ged+breit),
|
||||
dazu, wie viele davon ohne Schranke (roh) kippen, und die Vertrauens-Verteilung."""
|
||||
n = len(faelle)
|
||||
@@ -48,6 +48,14 @@ def diagnose(faelle, arme, arm="ged+breit"):
|
||||
if not gleich(arme["leer"][i], arme[arm][i]) and g != "breit:feuert":
|
||||
g = "geaendert ohne Kanal (Profil-Draht der Heuristik)"
|
||||
grund[g] += 1
|
||||
if aus is not None:
|
||||
q = f["anfrage"]
|
||||
aus.write(json.dumps({"zeit": f["zeit"], "raum": f["raum"], "strasse": q.get("street"),
|
||||
"pot": q.get("pot"), "bb": q.get("bigBlind"), "toCall": q.get("toCall"),
|
||||
"grund": g, "conf": m.group(2) if m else None,
|
||||
"leer": arme["leer"][i].get("action"), "arm": arme[arm][i].get("action"),
|
||||
"gegner": sum(1 for v in q.get("villains", ()) if not v.get("folded"))},
|
||||
ensure_ascii=False) + "\n")
|
||||
if m and m.group(2) != "NaN":
|
||||
confs[g].append(float(m.group(2)))
|
||||
roh = arme.get(arm + " roh")
|
||||
@@ -72,6 +80,9 @@ def main():
|
||||
ap.add_argument("--gedaechtnis", default=None, help="Worktree mit lesen/uebergabe.py (gedaechtnis-voll): Arme ged, ged+breit")
|
||||
ap.add_argument("--pool", default=None, help="d2_priors.json: Arm ged+breit+pool (GEGNER_POOL), Spots nach --spots")
|
||||
ap.add_argument("--spots", default=None, help="jsonl der geaenderten Spots des Pool-Arms (fuer audit_aenderung.py)")
|
||||
ap.add_argument("--breit-neu", default=None, help="GEGNER_BREIT-Wert eines neuen Kanal-Satzes (z. B. cbrw3s)")
|
||||
ap.add_argument("--spots-neu", default=None, help="jsonl der Spots, die --breit-neu gegen ged+breit aendert")
|
||||
ap.add_argument("--diag-aus", default=None, help="jsonl: Grund je Zug (fuer blockade.py)")
|
||||
ap.add_argument("--diag", action="store_true", help="Diagnose: GEGNER_BREIT_DIAG (Grund je Zug) + GEGNER_BREIT_ROH (ohne Schranke)")
|
||||
a = ap.parse_args()
|
||||
sys.path.insert(0, os.path.join(a.live, "entscheiden"))
|
||||
@@ -138,7 +149,11 @@ def main():
|
||||
arme["ged+breit roh diag"] = kern(a.kern, ged, {**basis, "GEGNER_BREIT": "1", "GEGNER_BREIT_ROH": "1",
|
||||
"GEGNER_BREIT_DIAG": "1"})
|
||||
namen += ["ged+breit roh"]
|
||||
diagnose(faelle, arme)
|
||||
if a.diag_aus:
|
||||
with open(a.diag_aus, "w", encoding="utf-8") as da:
|
||||
diagnose(faelle, arme, aus=da)
|
||||
else:
|
||||
diagnose(faelle, arme)
|
||||
if a.pool:
|
||||
pool = {**basis, "GEGNER_BREIT": "1", "GEGNER_POOL": os.path.abspath(a.pool)}
|
||||
arme["ged+breit+pool"] = kern(a.kern, ged, pool)
|
||||
@@ -154,6 +169,23 @@ def main():
|
||||
sp.write(json.dumps({"zeit": f["zeit"], "raum": f["raum"], "anfrage": ged[i],
|
||||
"leer": arme["leer"][i], "ohne_pool": alt, "pool": neu},
|
||||
ensure_ascii=False) + "\n")
|
||||
if a.breit_neu:
|
||||
# neuer Kanal-Satz (z. B. cbrw3s = Steal D1e) gegen ged+breit; geaenderte Spots fuer audit_aenderung.py
|
||||
neu_env = {**basis, "GEGNER_BREIT": a.breit_neu}
|
||||
name = f"ged+breit={a.breit_neu}"
|
||||
arme[name] = kern(a.kern, ged, neu_env)
|
||||
namen += [name]
|
||||
if a.diag:
|
||||
arme[name + " diag"] = kern(a.kern, ged, {**neu_env, "GEGNER_BREIT_DIAG": "1"})
|
||||
diagnose(faelle, arme, name)
|
||||
if a.spots_neu:
|
||||
with open(a.spots_neu, "w", encoding="utf-8") as sp:
|
||||
for i, f in enumerate(faelle):
|
||||
neu, alt = arme[name][i], arme["ged+breit"][i]
|
||||
if not gleich(alt, neu):
|
||||
sp.write(json.dumps({"zeit": f["zeit"], "raum": f["raum"], "anfrage": ged[i],
|
||||
"leer": arme["leer"][i], "ohne_pool": alt, "pool": neu},
|
||||
ensure_ascii=False) + "\n")
|
||||
z = collections.Counter()
|
||||
with open(a.aus, "w", encoding="utf-8") as aus:
|
||||
for i, f in enumerate(faelle):
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
alle 1345 100.00 %
|
||||
alle FLOP 237 17.62 %
|
||||
alle PREFLOP 829 61.64 %
|
||||
alle RIVER 111 8.25 %
|
||||
alle TURN 168 12.49 %
|
||||
breit != gez 1 0.07 %
|
||||
breit != gez CHECK->RAISE 1 0.07 %
|
||||
breit != gez kanal w 1 0.07 %
|
||||
breit != leer 10 0.74 %
|
||||
breit != leer FLOP 2 0.15 %
|
||||
breit != leer PREFLOP 3 0.22 %
|
||||
breit != leer RIVER 3 0.22 %
|
||||
breit != leer TURN 2 0.15 %
|
||||
breit+range != gez 1 0.07 %
|
||||
breit+range != gez CHECK->RAISE 1 0.07 %
|
||||
breit+range != gez kanal w 1 0.07 %
|
||||
breit+range != leer 10 0.74 %
|
||||
breit+range != leer FLOP 2 0.15 %
|
||||
breit+range != leer PREFLOP 3 0.22 %
|
||||
breit+range != leer RIVER 3 0.22 %
|
||||
breit+range != leer TURN 2 0.15 %
|
||||
ged != gez 4 0.30 %
|
||||
ged != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged != gez RAISE->FOLD 3 0.22 %
|
||||
ged != gez kanal ? 4 0.30 %
|
||||
ged != leer 7 0.52 %
|
||||
ged != leer FLOP 1 0.07 %
|
||||
ged != leer PREFLOP 2 0.15 %
|
||||
ged != leer RIVER 2 0.15 %
|
||||
ged != leer TURN 2 0.15 %
|
||||
ged+breit != gez 11 0.82 %
|
||||
ged+breit != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged+breit != gez CHECK->RAISE 5 0.37 %
|
||||
ged+breit != gez RAISE->CHECK 2 0.15 %
|
||||
ged+breit != gez RAISE->FOLD 3 0.22 %
|
||||
ged+breit != gez kanal ? 4 0.30 %
|
||||
ged+breit != gez kanal b 2 0.15 %
|
||||
ged+breit != gez kanal c 4 0.30 %
|
||||
ged+breit != gez kanal w 1 0.07 %
|
||||
ged+breit != leer 14 1.04 %
|
||||
ged+breit != leer FLOP 5 0.37 %
|
||||
ged+breit != leer PREFLOP 2 0.15 %
|
||||
ged+breit != leer RIVER 5 0.37 %
|
||||
ged+breit != leer TURN 2 0.15 %
|
||||
ged+breit=cbrw3m != gez 11 0.82 %
|
||||
ged+breit=cbrw3m != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged+breit=cbrw3m != gez CHECK->RAISE 5 0.37 %
|
||||
ged+breit=cbrw3m != gez RAISE->CHECK 2 0.15 %
|
||||
ged+breit=cbrw3m != gez RAISE->FOLD 3 0.22 %
|
||||
ged+breit=cbrw3m != gez kanal ? 4 0.30 %
|
||||
ged+breit=cbrw3m != gez kanal b 2 0.15 %
|
||||
ged+breit=cbrw3m != gez kanal c 4 0.30 %
|
||||
ged+breit=cbrw3m != gez kanal w 1 0.07 %
|
||||
ged+breit=cbrw3m != leer 14 1.04 %
|
||||
ged+breit=cbrw3m != leer FLOP 5 0.37 %
|
||||
ged+breit=cbrw3m != leer PREFLOP 2 0.15 %
|
||||
ged+breit=cbrw3m != leer RIVER 5 0.37 %
|
||||
ged+breit=cbrw3m != leer TURN 2 0.15 %
|
||||
gez != leer 9 0.67 %
|
||||
gez != leer FLOP 2 0.15 %
|
||||
gez != leer PREFLOP 3 0.22 %
|
||||
gez != leer RIVER 2 0.15 %
|
||||
gez != leer TURN 2 0.15 %
|
||||
@@ -0,0 +1,65 @@
|
||||
alle 1345 100.00 %
|
||||
alle FLOP 237 17.62 %
|
||||
alle PREFLOP 829 61.64 %
|
||||
alle RIVER 111 8.25 %
|
||||
alle TURN 168 12.49 %
|
||||
breit != gez 1 0.07 %
|
||||
breit != gez CHECK->RAISE 1 0.07 %
|
||||
breit != gez kanal w 1 0.07 %
|
||||
breit != leer 10 0.74 %
|
||||
breit != leer FLOP 2 0.15 %
|
||||
breit != leer PREFLOP 3 0.22 %
|
||||
breit != leer RIVER 3 0.22 %
|
||||
breit != leer TURN 2 0.15 %
|
||||
breit+range != gez 1 0.07 %
|
||||
breit+range != gez CHECK->RAISE 1 0.07 %
|
||||
breit+range != gez kanal w 1 0.07 %
|
||||
breit+range != leer 10 0.74 %
|
||||
breit+range != leer FLOP 2 0.15 %
|
||||
breit+range != leer PREFLOP 3 0.22 %
|
||||
breit+range != leer RIVER 3 0.22 %
|
||||
breit+range != leer TURN 2 0.15 %
|
||||
ged != gez 4 0.30 %
|
||||
ged != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged != gez RAISE->FOLD 3 0.22 %
|
||||
ged != gez kanal ? 4 0.30 %
|
||||
ged != leer 7 0.52 %
|
||||
ged != leer FLOP 1 0.07 %
|
||||
ged != leer PREFLOP 2 0.15 %
|
||||
ged != leer RIVER 2 0.15 %
|
||||
ged != leer TURN 2 0.15 %
|
||||
ged+breit != gez 11 0.82 %
|
||||
ged+breit != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged+breit != gez CHECK->RAISE 5 0.37 %
|
||||
ged+breit != gez RAISE->CHECK 2 0.15 %
|
||||
ged+breit != gez RAISE->FOLD 3 0.22 %
|
||||
ged+breit != gez kanal ? 4 0.30 %
|
||||
ged+breit != gez kanal b 2 0.15 %
|
||||
ged+breit != gez kanal c 4 0.30 %
|
||||
ged+breit != gez kanal w 1 0.07 %
|
||||
ged+breit != leer 14 1.04 %
|
||||
ged+breit != leer FLOP 5 0.37 %
|
||||
ged+breit != leer PREFLOP 2 0.15 %
|
||||
ged+breit != leer RIVER 5 0.37 %
|
||||
ged+breit != leer TURN 2 0.15 %
|
||||
ged+breit=cbrw3s != gez 16 1.19 %
|
||||
ged+breit=cbrw3s != gez ABSTAIN->RAISE 1 0.07 %
|
||||
ged+breit=cbrw3s != gez CHECK->RAISE 5 0.37 %
|
||||
ged+breit=cbrw3s != gez FOLD->RAISE 7 0.52 %
|
||||
ged+breit=cbrw3s != gez RAISE->CHECK 2 0.15 %
|
||||
ged+breit=cbrw3s != gez RAISE->FOLD 1 0.07 %
|
||||
ged+breit=cbrw3s != gez kanal ? 2 0.15 %
|
||||
ged+breit=cbrw3s != gez kanal b 2 0.15 %
|
||||
ged+breit=cbrw3s != gez kanal c 4 0.30 %
|
||||
ged+breit=cbrw3s != gez kanal s 7 0.52 %
|
||||
ged+breit=cbrw3s != gez kanal w 1 0.07 %
|
||||
ged+breit=cbrw3s != leer 23 1.71 %
|
||||
ged+breit=cbrw3s != leer FLOP 5 0.37 %
|
||||
ged+breit=cbrw3s != leer PREFLOP 11 0.82 %
|
||||
ged+breit=cbrw3s != leer RIVER 5 0.37 %
|
||||
ged+breit=cbrw3s != leer TURN 2 0.15 %
|
||||
gez != leer 9 0.67 %
|
||||
gez != leer FLOP 2 0.15 %
|
||||
gez != leer PREFLOP 3 0.22 %
|
||||
gez != leer RIVER 2 0.15 %
|
||||
gez != leer TURN 2 0.15 %
|
||||
File diff suppressed because one or more lines are too long
@@ -14,6 +14,8 @@
|
||||
//! | `r` | bluff-catch | river fold → call facing a bet | river gearbox (aggression / shown bluffs) |
|
||||
//! | `w` | thin value | river check → bet with a made hand | river gearbox |
|
||||
//! | `3` | light 3-bet | preflop call / top fold → 3-bet vs the lone opener | `fold_to_three_bet` |
|
||||
//! | `s` | steal width | unopened pot: opening width from the players behind | fold-to-bet of each |
|
||||
//! | `m` | light 3-bet, players behind | as `3`, the opener alone in, others still to act | `fold_to_three_bet`, `BEHIND_FOLD` each |
|
||||
//!
|
||||
//! Every read passes the same trust region before it is used (`bounded`): it is pulled toward the
|
||||
//! blind default by its confidence, then capped so the Bernoulli KL divergence from the blind default
|
||||
@@ -24,12 +26,13 @@
|
||||
//!
|
||||
//! Untouched: calling stations (already exploited by the heuristic, bit-identical), multiway pots,
|
||||
//! tournament spots (the caller applies this only with no ICM premium), and every decision the switch
|
||||
//! does not name. `GEGNER_BREIT=1` turns on all channels; otherwise its value lists the letters.
|
||||
//! does not name. `GEGNER_BREIT=1` turns on the five original channels (c b r w 3); `s` and `m` (D1e)
|
||||
//! must be named (e.g. `GEGNER_BREIT=cbrw3sm`), so the measured meaning of `1` stays fixed.
|
||||
|
||||
use super::bluff::is_bluff_hand;
|
||||
use super::read_gate::exploit_worthy;
|
||||
use super::river_br;
|
||||
use crate::exploit::fold_chance::DEFAULT_FOLD_TO_BET;
|
||||
use crate::exploit::fold_chance::{fold_base, DEFAULT_FOLD_TO_BET};
|
||||
use crate::exploit::profile::Profile;
|
||||
use crate::exploit::sample::FOLD_TO_THREE_BET_ANCHOR;
|
||||
use crate::exploit::style::classify;
|
||||
@@ -63,13 +66,23 @@ pub struct Channels {
|
||||
pub bluff_catch: bool,
|
||||
pub thin_value: bool,
|
||||
pub light_three_bet: bool,
|
||||
pub steal: bool,
|
||||
pub three_bet_behind: bool,
|
||||
}
|
||||
|
||||
impl Channels {
|
||||
pub fn parse(value: &str) -> Channels {
|
||||
let v = value.trim();
|
||||
if v == "1" || v.eq_ignore_ascii_case("alle") {
|
||||
return Channels { cbet: true, bluff_veto: true, bluff_catch: true, thin_value: true, light_three_bet: true };
|
||||
return Channels {
|
||||
cbet: true,
|
||||
bluff_veto: true,
|
||||
bluff_catch: true,
|
||||
thin_value: true,
|
||||
light_three_bet: true,
|
||||
steal: false,
|
||||
three_bet_behind: false,
|
||||
};
|
||||
}
|
||||
Channels {
|
||||
cbet: v.contains('c'),
|
||||
@@ -77,6 +90,8 @@ impl Channels {
|
||||
bluff_catch: v.contains('r'),
|
||||
thin_value: v.contains('w'),
|
||||
light_three_bet: v.contains('3'),
|
||||
steal: v.contains('s'),
|
||||
three_bet_behind: v.contains('m'),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -306,6 +321,59 @@ pub fn fold_to_three_bet_with(ch: Channels, raw: &Spot, seat: u8) -> Option<f64>
|
||||
(raw_reads() || conf >= CONFIDENCE_FLOOR).then(|| bounded(read, FOLD_TO_THREE_BET_ANCHOR, conf))
|
||||
}
|
||||
|
||||
/// `fold_to_three_bet` for channel `m`: the same trust-bounded read of `seat`, without the lone-villain
|
||||
/// pool (the pot has players behind) and only with `m` on.
|
||||
pub fn fold_to_three_bet_any(raw: &Spot, seat: u8) -> Option<f64> {
|
||||
let ch = channels();
|
||||
let mut live = raw.live_villains();
|
||||
if let (Some(_), None) = (live.next(), live.next()) {
|
||||
return fold_to_three_bet_with(ch, raw, seat);
|
||||
}
|
||||
if !ch.three_bet_behind {
|
||||
return None;
|
||||
}
|
||||
let v = raw.villains.iter().find(|v| v.seat == seat && !v.folded)?;
|
||||
let p = v.profile?;
|
||||
if exploit_worthy(classify(&p)) {
|
||||
return None;
|
||||
}
|
||||
let read = finite(p.fold_to_three_bet)?;
|
||||
let conf = confidence(&p);
|
||||
(raw_reads() || conf >= CONFIDENCE_FLOOR).then(|| bounded(read, FOLD_TO_THREE_BET_ANCHOR, conf))
|
||||
}
|
||||
|
||||
/// Steal (`s`): the opening-width multiplier of an unopened pot (`exploit::steal_width`) from the RAW
|
||||
/// spot: stations as the gated spot sees them, every other read fold-to-bet through the trust region
|
||||
/// (`bounded` toward the blind 0.45). `None` when the channel is off or nobody behind has a usable
|
||||
/// non-station read (then the gated `steal_width` is already the answer).
|
||||
pub fn steal_width_read(raw: &Spot) -> Option<f64> {
|
||||
steal_width_with(channels(), raw)
|
||||
}
|
||||
|
||||
pub fn steal_width_with(ch: Channels, raw: &Spot) -> Option<f64> {
|
||||
if !ch.steal {
|
||||
return None;
|
||||
}
|
||||
let mut read_any = false;
|
||||
let folds: Vec<f64> = raw
|
||||
.live_villains()
|
||||
.map(|v| match v.profile {
|
||||
Some(p) if exploit_worthy(classify(&p)) => fold_base(Some(&p)),
|
||||
Some(p) => {
|
||||
let c = confidence(&p);
|
||||
if raw_reads() || c >= CONFIDENCE_FLOOR {
|
||||
read_any = true;
|
||||
bounded(fold_base(Some(&p)), DEFAULT_FOLD_TO_BET, c)
|
||||
} else {
|
||||
DEFAULT_FOLD_TO_BET
|
||||
}
|
||||
}
|
||||
None => DEFAULT_FOLD_TO_BET,
|
||||
})
|
||||
.collect();
|
||||
read_any.then(|| crate::exploit::steal_width::width_from_folds(&folds))
|
||||
}
|
||||
|
||||
/// Why the reading layer leaves this decision at the blind default: the FIRST failing condition of
|
||||
/// the cascade (structure -> profile -> confidence -> channel spot -> the channel's own test), as a
|
||||
/// code plus the villain's confidence. Measurement only (`GEGNER_BREIT_DIAG`); `decision` is final.
|
||||
@@ -322,14 +390,30 @@ pub fn diagnose(raw: &Spot, decision: &Decision, premium: f64) -> String {
|
||||
}
|
||||
if raw.street == Street::Preflop {
|
||||
match crate::preflop::situation_of::situation_of(raw) {
|
||||
Situation::Unopened => return "pre:zuerst-rein (kein Kanal; Steal-Weite nur vs Stations)".into(),
|
||||
Situation::Unopened if !channels().steal => {
|
||||
return "pre:zuerst-rein (kein Kanal; Steal-Weite nur vs Stations)".into()
|
||||
}
|
||||
Situation::Unopened => {
|
||||
return match steal_width_read(raw) {
|
||||
None => "pre:s:kein-read".into(),
|
||||
Some(_) => "pre:s:breite-kippt-nicht".into(),
|
||||
}
|
||||
}
|
||||
Situation::FacingLimp => return "pre:limp (kein Kanal)".into(),
|
||||
Situation::FacingThreeBetPlus => return "pre:3bet+ (kein Kanal)".into(),
|
||||
Situation::FacingAllIn => return "pre:all-in (kein Kanal)".into(),
|
||||
Situation::FacingOpen => {}
|
||||
}
|
||||
let mut live = raw.live_villains();
|
||||
let (Some(v), None) = (live.next(), live.next()) else { return "pre:open:multiway".into() };
|
||||
let (Some(v), None) = (live.next(), live.next()) else {
|
||||
if !channels().three_bet_behind {
|
||||
return "pre:open:multiway".into();
|
||||
}
|
||||
return match crate::preflop::advise::players_behind(raw) {
|
||||
None => "pre:m:caller-oder-kein-opener".into(),
|
||||
Some(_) => "pre:m:f3-mal-dahinter-unter-preis".into(),
|
||||
};
|
||||
};
|
||||
if line::opener(&raw.history) != Some(v.seat) {
|
||||
return "pre:open:nicht-opener".into();
|
||||
}
|
||||
@@ -457,5 +541,9 @@ mod tests {
|
||||
let some = Channels::parse("cb");
|
||||
assert!(some.cbet && some.bluff_veto && !some.bluff_catch && !some.thin_value && !some.light_three_bet);
|
||||
assert!(Channels::parse("3").light_three_bet);
|
||||
assert!(!all.steal, "`1` keeps its measured meaning: steal must be named");
|
||||
assert!(Channels::parse("cbrw3s").steal && Channels::parse("s").steal);
|
||||
assert!(!Channels::parse("s").cbet);
|
||||
assert!(!all.three_bet_behind && Channels::parse("m").three_bet_behind && !Channels::parse("m").steal);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,11 @@ const BOUNDS: (f64, f64) = (0.7, 1.4);
|
||||
/// steal, calling stations narrow it; no villain or no profiles: 1.0.
|
||||
pub fn steal_width(spot: &Spot) -> f64 {
|
||||
let folds: Vec<f64> = spot.live_villains().map(|v| fold_base(v.profile.as_ref())).collect();
|
||||
width_from_folds(&folds)
|
||||
}
|
||||
|
||||
/// The opening-width multiplier from the fold bases of the players behind (see `steal_width`).
|
||||
pub fn width_from_folds(folds: &[f64]) -> f64 {
|
||||
if folds.is_empty() {
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
+79
-11
@@ -72,10 +72,10 @@ fn cutoffs(spot: &Spot, situation: Situation, effective_bb: f64, scale: f64, jam
|
||||
/// Width multiplier for this situation: `range_width_scale` (the profile shift), and in
|
||||
/// unopened pots, which are steals, also how often the players behind fold
|
||||
/// (`exploit::steal_width`: wider against nits, narrower against calling stations).
|
||||
fn scale_for(spot: &Spot, situation: Situation, thresholds: &Thresholds) -> f64 {
|
||||
fn scale_for(spot: &Spot, situation: Situation, thresholds: &Thresholds, steal: Option<f64>) -> f64 {
|
||||
let shift = sane_scale(thresholds.range_width_scale);
|
||||
match situation {
|
||||
Situation::Unopened => shift * steal_width(spot),
|
||||
Situation::Unopened => shift * steal.unwrap_or_else(|| steal_width(spot)),
|
||||
_ => shift,
|
||||
}
|
||||
}
|
||||
@@ -167,13 +167,39 @@ pub fn advise_widened(spot: &Spot, thresholds: &Thresholds, jam_widen: f64) -> P
|
||||
/// `raw = None` (or the switch off) is exactly `advise_widened`.
|
||||
pub fn advise_widened_read(spot: &Spot, raw: Option<&Spot>, thresholds: &Thresholds, jam_widen: f64) -> PreflopPlan {
|
||||
let situation = situation_of(spot);
|
||||
light_three_bet(spot, raw, situation, advise_chart(spot, thresholds, jam_widen))
|
||||
let blind = advise_chart(spot, thresholds, jam_widen, None);
|
||||
// Steal (`read_exploit` channel `s`): the opening width from the players' reads behind.
|
||||
let read = (situation == Situation::Unopened)
|
||||
.then(|| raw.and_then(crate::engine::read_exploit::steal_width_read))
|
||||
.flatten();
|
||||
let plan = match read {
|
||||
Some(width) => {
|
||||
let read_plan = advise_chart(spot, thresholds, jam_widen, Some(width));
|
||||
if read_plan.action == blind.action {
|
||||
blind
|
||||
} else {
|
||||
PreflopPlan {
|
||||
reason: format!(
|
||||
"{} | breit:s: steal width {width:.2} vs blind {:.2}",
|
||||
read_plan.reason,
|
||||
steal_width(spot)
|
||||
),
|
||||
..read_plan
|
||||
}
|
||||
}
|
||||
}
|
||||
None => blind,
|
||||
};
|
||||
light_three_bet(spot, raw, situation, plan)
|
||||
}
|
||||
|
||||
/// A light 3-bet re-raises to this multiple of the open.
|
||||
const LIGHT_THREE_BET_MULT: f64 = 3.0;
|
||||
/// The fold-to-3-bet read must clear the pure bluff's break-even by this much.
|
||||
const LIGHT_THREE_BET_EDGE: f64 = 0.05;
|
||||
/// Channel `m`: how often each player still to act behind folds to a light 3-bet (no read for it;
|
||||
/// cold 4-bets and cold calls of a 3-bet are rare, so a high, fixed share).
|
||||
pub const BEHIND_FOLD: f64 = 0.9;
|
||||
/// Folding hands 3-bet light only from the top of the deck (some equity when called); the bottom
|
||||
/// stays a fold.
|
||||
const LIGHT_THREE_BET_BAND: f64 = 0.85;
|
||||
@@ -194,13 +220,25 @@ fn light_three_bet(spot: &Spot, raw: Option<&Spot>, situation: Situation, plan:
|
||||
return plan;
|
||||
}
|
||||
let mut live = spot.live_villains();
|
||||
let (Some(v), None) = (live.next(), live.next()) else { return plan };
|
||||
if line::opener(&spot.history) != Some(v.seat) {
|
||||
return plan;
|
||||
}
|
||||
let (v, behind) = match (live.next(), live.next()) {
|
||||
(Some(v), None) => {
|
||||
if line::opener(&spot.history) != Some(v.seat) {
|
||||
return plan;
|
||||
}
|
||||
(v, 0)
|
||||
}
|
||||
// Channel `m` (read_exploit): the opener alone in, everyone else still to act behind.
|
||||
(Some(_), Some(_)) if raw.is_some() && crate::engine::read_exploit::channels().three_bet_behind => {
|
||||
let Some((seat, behind)) = players_behind(spot) else { return plan };
|
||||
let Some(v) = spot.live_villains().find(|v| v.seat == seat) else { return plan };
|
||||
(v, behind)
|
||||
}
|
||||
_ => return plan,
|
||||
};
|
||||
let gated = v.profile.and_then(|p| p.fold_to_three_bet).filter(|f| !f.is_nan());
|
||||
let bounded = || raw.and_then(|r| crate::engine::read_exploit::fold_to_three_bet(r, v.seat));
|
||||
let bounded = || raw.and_then(|r| crate::engine::read_exploit::fold_to_three_bet_any(r, v.seat));
|
||||
let Some(f3) = gated.or_else(bounded) else { return plan };
|
||||
let f3 = f3 * BEHIND_FOLD.powi(behind);
|
||||
let hero_in = spot
|
||||
.history
|
||||
.iter()
|
||||
@@ -218,17 +256,47 @@ fn light_three_bet(spot: &Spot, raw: Option<&Spot>, situation: Situation, plan:
|
||||
}
|
||||
PreflopPlan {
|
||||
action: ChartAction::Raise,
|
||||
reason: format!("{} | {}light 3-bet: fold to 3-bet {f3:.2} > {need:.2} needed", plan.reason, if gated.is_some() { "" } else { "breit:3: " }),
|
||||
reason: format!(
|
||||
"{} | {}light 3-bet: fold to 3-bet {f3:.2} > {need:.2} needed",
|
||||
plan.reason,
|
||||
if behind > 0 {
|
||||
format!("breit:m: {behind} behind, ")
|
||||
} else if gated.is_some() {
|
||||
String::new()
|
||||
} else {
|
||||
"breit:3: ".to_string()
|
||||
}
|
||||
),
|
||||
..plan
|
||||
}
|
||||
}
|
||||
|
||||
fn advise_chart(spot: &Spot, thresholds: &Thresholds, jam_widen: f64) -> PreflopPlan {
|
||||
/// Facing one open with nobody in between: the opener's seat and how many live players are still to
|
||||
/// act behind (they only posted blinds or have not acted). `None` when someone called or raised besides
|
||||
/// the opener (a squeeze spot) or there is no opener.
|
||||
pub fn players_behind(spot: &Spot) -> Option<(u8, i32)> {
|
||||
let opener = line::opener(&spot.history)?;
|
||||
let mut behind = 0;
|
||||
for v in spot.live_villains().filter(|v| v.seat != opener) {
|
||||
let acted = spot.history.iter().any(|r| {
|
||||
r.street == Street::Preflop
|
||||
&& r.seat == v.seat
|
||||
&& !matches!(r.action, SeenAction::PostSmallBlind | SeenAction::PostBigBlind | SeenAction::PostAnte)
|
||||
});
|
||||
if acted {
|
||||
return None;
|
||||
}
|
||||
behind += 1;
|
||||
}
|
||||
spot.live_villains().any(|v| v.seat == opener).then_some((opener, behind))
|
||||
}
|
||||
|
||||
fn advise_chart(spot: &Spot, thresholds: &Thresholds, jam_widen: f64, steal: Option<f64>) -> PreflopPlan {
|
||||
let hand = percentile(spot.variant, &spot.hero_cards);
|
||||
let pos = seat_position(spot, spot.hero_seat);
|
||||
let situation = situation_of(spot);
|
||||
let depth = effective_stack_bb(spot);
|
||||
let scale = scale_for(spot, situation, thresholds);
|
||||
let scale = scale_for(spot, situation, thresholds, steal);
|
||||
let row = cutoffs(spot, situation, depth, scale, jam_widen);
|
||||
let action = decide(hand, &row);
|
||||
let sure = certainty(hand, &[row.raise, row.call, row.jam]);
|
||||
|
||||
Reference in New Issue
Block a user