Startprobe SHARINGAN rein: --dazu fuer feste Stellen (Limp-Nachweis), --nachflop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 15:07:41 +01:00
co-authored by Claude Opus 5.5
parent 5142164b39
commit f9d7c9786b
@@ -32,7 +32,7 @@ def position(q):
def main():
ap = argparse.ArgumentParser(); ap.add_argument("exe"); ap.add_argument("schalter"); ap.add_argument("aus")
ap.add_argument("--tag", default="2026-12-03"); ap.add_argument("--n", type=int, default=3000)
ap.add_argument("--tag", default="2026-12-03"); ap.add_argument("--n", type=int, default=3000); ap.add_argument("--nachflop", action="store_true", help="nur Flop/Turn/River"); ap.add_argument("--dazu", help="jsonl mit {q, hand}: diese Anfragen zusaetzlich (z. B. die Limp-Stellen)")
o = ap.parse_args()
if H.spielt():
sys.exit("ABBRUCH: Laeufer spielt")
@@ -50,7 +50,11 @@ def main():
d = os.path.join(decide.SCHALTER.get("MOTOR_SCHATTEN"), "daten", "grundstrategie", "motor")
befehl = [o.exe, "dienst", "sechs100", d, "2000-600-400", "200", os.path.join(d, "sechs100-v2.bin"), "genau", "hu=%s,%s" % (os.path.join(d, "hu100-v1.bin"), os.path.join(d, "hu200-v2.bin"))]
items = [it for it in J.lade_mit_antwort(os.path.join(H.L, "archiv", "lauf", "schatten.jsonl"), 10 ** 7) if str(it.get("zeit") or "").startswith(o.tag)][-o.n:]
if o.nachflop:
items = [it for it in J.lade_mit_antwort(os.path.join(H.L, "archiv", "lauf", "schatten.jsonl"), 10 ** 7) if str(it.get("zeit") or "").startswith(o.tag) and it["q"].get("street") != "PREFLOP"][-o.n:]
items = [dict(it, q=dict(it["q"], seed=it["seed"])) if it.get("seed") is not None else it for it in items]
if o.dazu:
items = [{"hand": json.loads(z).get("hand"), "q": json.loads(z)["q"]} for z in open(o.dazu, encoding="utf-8")] + items
print("Startprobe: %d Anfragen vom %s | B-Zeile %s | Exe %s" % (len(items), o.tag, k["b"], os.path.basename(o.exe)), flush=True)
t0 = time.time()
antw, zeiten, tode = H.laufe(befehl, env, items, threading.Event(), zusage=lambda: None)