Motor: Bestandsaufnahme Exploits/Gedaechtnis, Bluff-Probe River

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 23:52:32 +01:00
co-authored by Claude Opus 5.5
parent c75a2b1863
commit 80cc7dce6e
3 changed files with 57 additions and 0 deletions
+8
View File
@@ -317,3 +317,11 @@ Werkzeug: `messung/pruef/tisch6_pool.py` + `pool_gegner.py` (Trainer-Pool als Ge
- Stärkste Posten (bb/100, einzeln unsicher): River Call->Fold +1,9, River Fold->Call +0,9, Turn Call->Fold +1,0, Flop Call->Fold +1,0, Turn/Flop Check->Einsatz +0,9/+0,8, Iso +0,8 (unsicher). Nichts zieht signifikant nach unten.
- Keine regelwidrigen Züge, keine Fehler, keine Doppelwirkung erkennbar.
- Grenzen: Typen aus ~4.000 Händen je Person (live ab 100); Trainer-Pool zu passiv; eigene Hände nicht verglichen (Lauf zu langsam, nach 353 Lagen gestoppt, 37 mit Regel). `dienst.rs` hat `vor`/`nackt` bekommen, nur Prüfdatei pokerbench-motor-pool.exe, live-exe unverändert.
## Bestandsaufnahme: Exploits und Spieler-Gedächtnis im Motor (24.11. nachts, Owner-Frage)
- Drin: Typen VPIP×Aggression / VPIP×Fold-Neigung aus hhDealer (fest, Stand 17.11.) am River, Turn, Flop nur zu zweit, dazu Iso gegen Limper.
- **Fehlt: Gedächtnis lernt nicht.** Tafeln werden nicht aus gespielten Händen fortgeschrieben, kein Sitzungs-Lesen, keine gezeigten Hände, Einsatzgrößen, Zeiten je Spieler. `profile` wird vom Motor nicht gelesen.
- **Fehlt: Bluff-Richtung.** River-Regel streicht Bluffs und setzt Wert, erfindet nie einen Bluff (Flop/Turn macht es nach Fold-Neigung). Probe `bluff_mehr.py`, 179 schwache Checks: mit live-Abschlag (d −0,285) +0,25 bb/100 über alle Typen, gegen „foldet sehr oft“ +1,5; Spanne d 0: +0,82 / d −0,6: +0,05. Nicht echt geprüft.
- **Fehlt ganz: Mehrspieler-Töpfe (NL2-Regeln nur zu zweit), River-Raise als Bluff, 2er-Tisch (notfall).**
- Nicht geprüft, ob nötig: DROSSEL-Anteile (Mehrweg-Lead/Raise/Turn-Barrel seltener, für den ALTEN Kern +3,1..4,2 gemessen); übertragen ungeprüft. Alter Kern: GEGNER_ZAEHLUNG/WERT_BRETT/RERAISE_TIEFE/SOLVER3_TIEF waren auf hhDealer Verlierer (−1,4..1,5), bleiben draußen. Vorwissen im alten Kern nur +0,1..0,5. Tischwahl läuft im Läufer weiter (unabhängig vom Motor). Timing-Tells: zu schwach.
+44
View File
@@ -0,0 +1,44 @@
# Fehlende Richtung: lohnt am River ein Bluff MEHR, wo der Motor schwach (<0,6) checkt? Je Gegnertyp VPIP x Fold-Neigung, echte Foldraten (nl2-einsatz.txt).
# Foldrate fuer schwache Haende um d Logit gesenkt (0 / -0,285 wie live / -0,6 / -1,0); Gewinn = Bluff minus Check, nur wenn > 0,1 Topf. Je Lage, dann x River-Haeufigkeit.
import sys,json,math,itertools,collections; sys.path.insert(0,'D:/Projects/pokerfreak/messung/pruef'); import tisch6 as T6
P="D:/Projects/pokerfreak/"; S="C:/Users/marcm/AppData/Local/Temp/claude/7d9b2283592ab6d4/4ef590f0-5993-429e-a622-e4a935173f5c/scratchpad/frei.jsonl"; m={}
for z in open(P+"daten/grundstrategie/motor/nl2-einsatz.txt"):
w=z.split()
if len(w)>=7: m[w[0],*map(int,w[1:5])]=[float(x) for x in w[5:]]
ty=collections.Counter(int(z.split()[1]) for z in open(P+"daten/grundstrategie/motor/nl2-fold.txt"))
RK=dict(zip("TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN JACK QUEEN KING ACE".split(),"23456789TJQKA")); K=lambda c:RK[c["rank"]]+c["suit"][0].lower()
DE=T6.DECK; import random; R=random.Random(1); L=[]
for l in open(S):
z=json.loads(l); q=z["q"]; r=z["r"]
if r["action"]!="CHECK": continue
v=[v for v in q["villains"] if not v.get("folded")]; rv=[h for h in q["history"] if h["street"]=="RIVER"]
if len(v)!=1 or len(rv)>1 or q["seats"]==2: continue
b=[K(c) for s in("FLOP","TURN","RIVER") for c in q["board"][s]]; h=[K(c) for c in q["heroCards"]]
my=T6.wert7(b+h); rest=[c for c in DE if c not in b+h]; e=[T6.wert7(b+list(x)) for x in R.sample(list(itertools.combinations(rest,2)),250)]
s=sum((my>x)+.5*(my==x) for x in e)/len(e); pot=q["pot"]/q["bigBlind"]
if s<.6 and 1<pot<=150: L.append((s,pot,min(q["heroStack"],v[0]["stack"])/q["pot"],len(rv)))
print("schwache Checks",len(L),"von 712 freien Lagen (9.362 Haende)")
nt=lambda t:t-min(.05*t,10)
def wert(L,t,d):
g=[];n=0
for s,pot,rest,j in L:
pk=int(pot>=20); sb=sum(s>=x for x in(.1,.2,.3,.4,.5,.6,.7,.8,.85,.9,.94,.97,.99)); k=min(int(s*100),99); u=lambda h:sum(h[:k])+.5*h[k]
if j:
h=m.get(("h",0,0,pk,t)); ch=h and u(h)*nt(pot)*(.75 if .35<=s<.6 else 1)
else:
c=m.get(("c",0,0,pk,t)); h=m.get(("s",0,0,pk,0)); ch=c and h and (1-c[0])*c[1+sb]*nt(pot)+c[0]*max(u(h)*nt(pot+1.32*pot)-.66*pot,0)
if ch is None: continue
be=-9e9
for x,gi in((.33,1),(.66,2),(1.,3)):
v=m.get(("a",j,gi,pk,t))
if not v or x>=rest: continue
f0=min(max(v[0],.02),.98); fo=1/(1+math.exp(-math.log(f0/(1-f0))-d)); ra=v[1]*(1-fo)/(1-f0); b=x*pot
be=max(be,fo*nt(pot)+(1-fo-ra)*(v[2+sb]*nt(pot+2*b)-b)-ra*b)
if be-ch>.1*pot: n+=1; g.append(be-ch)
return n/len(L),sum(g)
for d in(0,-.285,-.6,-1.0):
tot=0;kn=0;zz=[]
for f in range(5):
a=[(ty[v*5+f],wert(L,v*5+f,d)) for v in range(6) if ty[v*5+f]]; w=sum(x for x,_ in a); an=sum(x*y[0] for x,y in a)/w; bb=sum(x*y[1] for x,y in a)/w
zz.append("%s: %.0f%% Bluffs %+.2f"%(["sehr selten","selten","mittel","oft","sehr oft"][f],100*an,bb/93.62)); tot+=w*bb
print("d %+.3f"%d,"| ".join(zz),"| alle Typen gewichtet %+.2f bb/100; unbekannt %+.2f"%(tot/sum(ty.values())/93.62,wert(L,30,d)[1]/93.62))
+5
View File
@@ -0,0 +1,5 @@
schwache Checks 179 von 712 freien Lagen (9.362 Haende)
d +0.000 sehr selten: 2% Bluffs +0.03| selten: 19% Bluffs +0.38| mittel: 37% Bluffs +0.84| oft: 56% Bluffs +1.85| sehr oft: 80% Bluffs +3.31 | alle Typen gewichtet +0.82 bb/100; unbekannt +0.24
d -0.285 sehr selten: 0% Bluffs +0.00| selten: 4% Bluffs +0.09| mittel: 9% Bluffs +0.13| oft: 30% Bluffs +0.64| sehr oft: 48% Bluffs +1.48 | alle Typen gewichtet +0.25 bb/100; unbekannt +0.08
d -0.600 sehr selten: 0% Bluffs +0.00| selten: 2% Bluffs +0.03| mittel: 0% Bluffs +0.00| oft: 4% Bluffs +0.05| sehr oft: 24% Bluffs +0.49 | alle Typen gewichtet +0.05 bb/100; unbekannt +0.00
d -1.000 sehr selten: 0% Bluffs +0.00| selten: 0% Bluffs +0.00| mittel: 0% Bluffs +0.00| oft: 0% Bluffs +0.00| sehr oft: 1% Bluffs +0.01 | alle Typen gewichtet +0.00 bb/100; unbekannt +0.00