diff --git a/messung/fremd/fremd_tor.py b/messung/fremd/fremd_tor.py index 277ab865..aa165f66 100644 --- a/messung/fremd/fremd_tor.py +++ b/messung/fremd/fremd_tor.py @@ -117,7 +117,8 @@ def starte_cfr6(arm, k, exe, s, frist_datei, a): d = a.daten kern = f"cmd:{exe} dienst sechs100 {d} 2000-600-400 200 {d}/sechs100-v2.bin genau hu={d}/hu100-v1.bin,{d}/hu200-v2.bin" serve, k50, policy = a.cfr6 - fremd = f"py:{os.path.join(PRUEF, 'fremd6.py')} {serve} {k50} {policy}" + # fremd6.py laedt die gelernte Policy nur mit ihrem SHA256 (sonst spielte nplayer_serve sein Skript: Farm 05.12. Trockentest) + fremd = f"py:{os.path.join(PRUEF, 'fremd6.py')} {serve} {k50} {policy} {sha256(policy).lower()}" ordner = os.path.join(a.aus, "cfr6", arm) os.makedirs(ordner, exist_ok=True) aus = os.path.join(ordner, f"tisch-{k}.jsonl") @@ -280,6 +281,7 @@ def main(): kopf = {"start": time.strftime("%Y-%m-%dT%H:%M:%S"), "arme": list(arme), "basis_sha256": sha256(a.basis[0]), "kandidat_sha256": sha256(a.kandidat[0]), "sitzungen": a.sitzungen, "frist_s": a.frist_s, "minuten": a.minuten, "frist_datei": a.frist_datei, "frist_datei_sha256": sha256(a.frist_datei) if a.frist_datei else None, + "cfr6_policy_sha256": sha256(a.cfr6[2]).lower() if a.cfr6 else None, "schalter": {arm: s for arm, (_, s, _) in arme.items()}} bots = [b.strip() for b in a.bots.split(",") if b.strip()] if "cfr6" in bots and not a.cfr6: diff --git a/messung/pruef/fremd6.py b/messung/pruef/fremd6.py index c3c48fc4..6899b854 100644 --- a/messung/pruef/fremd6.py +++ b/messung/pruef/fremd6.py @@ -19,6 +19,9 @@ class Serve: def __init__(self, a): cmd = [a[0], "serve"] self.agent = "script:tight-aggressive" + if len(a) == 3: + # Policy ohne SHA256: nplayer_serve spielte still sein Skript statt CFR-NLHE-6max (Farm 05.12.) - lieber abbrechen + sys.exit("fremd6: Policy angegeben, aber ohne sha256 (Aufruf: fremd6.py )") if len(a) > 3: cmd += ["--card-buckets", a[1], "--policy", "p", a[2], a[3]] self.agent = "policy:p"