Farm: Kreuz-Abspiel (kreuz.sh, mehrweg 06.12.): neuer Merge spielt die Aufzeichnung von an der vorigen Rauchprobe ab, Code-Gleichheitsbeleg ohne Uhr-Rauschen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marc Mintel
2026-12-06 04:06:13 +01:00
co-authored by Claude Opus 5.5
parent 9be9bec148
commit aabc2f8c4a
+18
View File
@@ -0,0 +1,18 @@
#!/bin/zsh
# mehrweg 06.12.: Kreuz-Abspiel als Code-Gleichheitsbeleg fuer Umbau-Merges: der neue Merge (Rauchprobe <neu>, Exe und Pruefstand-Zeile
# seines an_selbst-Arms) spielt die Aufzeichnung von an aus der Rauchprobe <alt> ab. Erwartung: bitgleich, auch Turn/River.
# kreuz.sh <neu> <alt> z. B. kreuz.sh m5v m5 (beide Rauchproben muessen fertig sein)
N=$1; A=$2; H=${0:a:h}; S=${TMPDIR:-/tmp}; PY='C:\Users\marcm\AppData\Local\Programs\Python313\python.exe'
W="C:\\pf-arbeit\\bitgleich\\rauch-$N"; DW="D:\\Projects\\pokerfreak-daten\\pruefstand\\bitgleich"
K=$(python3 -c "import json;print(json.load(open('/Volumes/Alpha SSD/pokerfreak-daten/pruefstand/bitgleich/rauch-$N/auftrag.json'))['arme'][0][2][:8])")
ID="bitgleich-kreuz-$N-von-$A"; AUS="$DW\\rauch-$N\\kreuz_$A\\teil0.jsonl"; VON="$DW\\rauch-$A\\an\\teil0.jsonl"
python3 - "$S/$ID.json" "$ID" "$K" "$W" "$AUS" "$VON" "$PY" <<'PY'
import json, sys
f, id_, k, W, aus, von, py = sys.argv[1:8]
exe = rf"C:\pf-arbeit\pokerbench-allinprobe-{k}.exe"
j = {"id": id_, "sitzung": "bitgleich", "prio": -20, "faeden": 4, "ram_gb": 12, "kurz": True, "dauer_min": 30, "ordner": W,
"befehl": rf'powershell -NoProfile -Command "New-Item -ItemType Directory -Force {aus.rsplit(chr(92), 1)[0]} | Out-Null; & {py} -X utf8 {W}\bg_lauf.py {exe} {W}\zeile-an_selbst.txt X 0 1 {aus}"',
"env": {"BG_FRIST": "1", "BG_ABSPIEL_VON": von}}
json.dump(j, open(f, "w"))
PY
scp -q "$S/$ID.json" "Marc@192.168.1.201:D:/Projects/pf-batterie/messung/farm/schlange/auftraege/$ID.json" && echo "eingereiht $ID (Exe $K)"