Buendel: Bitprobe TISCH_TEIL, 8 Blaetter Grundseite in 4 Teilen = basis.jsonl am Stueck (144/144 bitgleich)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 19:28:43 +01:00
co-authored by Claude Opus 5.5
parent 3b8d00c923
commit 7b463710e3
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,12 @@
# Nachweis TISCH_TEIL: 8 Blaetter der Grundseite b1 (Saat 55), in 4 Teilen nachgespielt, gegen die am Stueck gespielte basis.jsonl.
# Verglichen je (Blatt, Drehung, Platz): Karten, Lochkarten, X-Plaetze, alle Zuege ("alle") und Ergebnis.
import json, glob
B = "daten/nacht/sh-3v3-b1--pokerbench-pruef6-nachtlive--basis.jsonl"
T = sorted(glob.glob("daten/bitprobe/b1-basis-teile.teil*.jsonl"))
key = lambda r: (r["blatt"], r["dreh"], r["platz"])
feld = lambda r: (r["karten"], r["loch"], r["xplaetze"], r["alle"], r["erg"])
basis = {key(r): feld(r) for r in map(json.loads, open(B, encoding="utf-8")) if r["blatt"] < 8}
teile = {key(r): feld(r) for f in T for r in map(json.loads, open(f, encoding="utf-8"))}
gleich = sum(basis.get(k) == v for k, v in teile.items())
print("Zeilen basis (Blatt<8): %d, Teile: %d, gleich: %d, Schluessel gleich: %s" % (len(basis), len(teile), gleich, set(basis) == set(teile)))
print("BITGLEICH" if gleich == len(teile) == len(basis) and set(basis) == set(teile) else "ABWEICHUNG")
@@ -0,0 +1,2 @@
Zeilen basis (Blatt<8): 144, Teile: 144, gleich: 144, Schluessel gleich: True
BITGLEICH