- dienst.rs: Riesen-All-in aus der Tafel (>= 2,5x Topf nach dem Flop) wird gegen die NL2-Fold-Rate und die staerkste Caller-Range nachgerechnet und gestrichen, wenn es gegen Folden Geld verliert (MOTOR_JAMPROBE=0 schaltet ab) - Strategie:🕳️ exakt gleichverteilte Zeilen zaehlen als nie gelernt (Preisfrage statt Wuerfeln) - gedaechtnis.rs, range.rs, nl2/spiel/nachrechnen: Gegnergedaechtnis, Ranges, Splash-Toepfe; schatten.py nimmt Splash, wenn splash<bb>.bin gelernt ist - Messungen unter messung/motor/ (ohne .bin und Dateien > 5 MB) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
1.7 KiB
Python
19 lines
1.7 KiB
Python
# Gebaute Bluff-Regel am echten Motor: freie River-Lagen gegen fuenf Typen; bluff_pruef.py <exe> <frei.jsonl>
|
|
import json,sys,subprocess,threading,collections
|
|
D="D:/Projects/pokerfreak/daten/grundstrategie/motor"; E="D:/Projects/pokerfreak/entscheiden/motor/target/"+sys.argv[1]
|
|
F=[json.loads(z) for z in open(sys.argv[2],encoding="utf-8")]; F=[f for f in F if f["q"]["seats"]>2 and sum(not v.get("folded") for v in f["q"]["villains"])==1][::4]
|
|
TY={"foldet sehr selten":10,"mittel":12,"oft":13,"sehr oft":14,"unbekannt":30}; O={}
|
|
def arb(nm):
|
|
p=subprocess.Popen([E,"dienst","sechs100",D,"2000-600-400","200",D+"/sechs100-v2.bin","genau"],stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.DEVNULL,text=True,encoding="utf-8",creationflags=0x4000)
|
|
l=O[nm]=[]
|
|
for f in F:
|
|
q=json.loads(json.dumps(f["q"])); q["seed"]=1
|
|
for v in q["villains"]: v["typF"]=TY[nm]
|
|
p.stdin.write(json.dumps(q)+"\n"); p.stdin.flush(); l.append((q,json.loads(p.stdout.readline())))
|
|
p.stdin.close()
|
|
th=[threading.Thread(target=arb,args=(n,)) for n in TY]; [x.start() for x in th]; [x.join() for x in th]
|
|
for n,l in O.items():
|
|
c=collections.Counter("Bluff gestrichen" if "kein Bluff" in a["reason"] else "Bluff neu" if "Bluff:" in a["reason"] else "Wert neu" if "Wert:" in a["reason"] else "wie Motor "+a["action"] for q,a in l)
|
|
print(n,len(l),dict(c),"unzulaessig",sum(a["action"] not in q["legalActions"] or a["action"]=="RAISE" and not q["minRaiseTo"]-1e-9<=a["size"]<=q["maxRaiseTo"]+1e-9 for q,a in l))
|
|
for q,a in [x for x in O["sehr oft"] if "] Bluff:" in x[1]["reason"]][:4]: print([c["rank"]+c["suit"][0] for c in q["heroCards"]],[c["rank"]+c["suit"][0] for s in("FLOP","TURN","RIVER") for c in q["board"][s]],a["reason"][:170])
|