Files
pokerfreak/messung/motor/nl2/grosse_river.py
T
mmintelandClaude Opus 5.5 c75a2b1863 Motor: Rust-Engine mit NL2-Regeln und Spielertypen, Pruefwerkzeuge
Regeln fuer River, Flop/Turn, Einsaetze und Iso gegen Limper (nl2.rs), Tafeln ohne Spielerkennungen.
Gemeinsam gegen den Trainer-Pool: +8,0 +-3,9 bb/100 mit bekanntem Typ, +0,9 +-6,6 ohne. Gewinn live nicht belegt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:51:18 +01:00

18 lines
1.2 KiB
Python

# NL2-Population (hhDealer, n7_hhd_s3): wie oft wird auf grosse River-Einsaetze gefoldet, wirksamer Einsatz (durch Gegnerstapel begrenzt) / Topf
import pickle,collections,math,os
P=pickle.load(open("C:/Users/marcm/pokerfreak-regulars/eichung/n7_hhd_s3.pkl","rb"))
K=collections.defaultdict(list)
bn=[.2,.45,.7,.9,1.15,1.6,2.5,99]; nm=["-.2",".2-.45",".45-.7",".7-.9",".9-1.15","1.15-1.6","1.6-2.5",">2.5"]
for d in P:
if d["a"]!="BET": continue
b=min(d["b"],d["stack_o"]); x=b/max(d["topf"],.1); i=next(i for i,y in enumerate(bn) if x<=y)
ai=b>=.97*min(d["stack"],d["stack_o"]) ; z=d["zw"][0]
for k in ((nm[i],"alle",""),(nm[i],"All-in" if ai else "nicht All-in",""),(nm[i],"Linie",d["li"]),(nm[i],"Topf","gross>=20" if d["topf"]>=20 else "klein<20")):
K[k].append((z=="f",x/(1+x),z=="r",d["id"]))
print("Fold braucht b/(b+Topf) (reiner Bluff ohne Rake, Geber verliert bei Call/Raise alles)")
for k,v in sorted(K.items(),key=lambda x:(nm.index(x[0][0]),x[0][1:])):
n=len(v)
if n<80: continue
f=sum(a[0] for a in v)/n; q=sum(a[1] for a in v)/n
print("%-9s %-13s %-10s n %5d Fold %4.1f%% +-%.1f noetig %4.1f%% Reserve %+5.1f"%(k[0],k[1],k[2],n,100*f,100*math.sqrt(f*(1-f)/n),100*q,100*(f-q)))