#!/usr/bin/env bash
# After a Touch 6 hand under full Dev on pos2 — extract golden into templates.
set -euo pipefail
RAW="${1:-$HOME/EtherGold/dev/data/packets.raw}"
OUT="$HOME/EtherGold/dev/lab_gameplay_templates/touch6_wager.hex"
cd ~/EtherGold/dev
python3 lab_gameplay_extract_touch6.py "$RAW" -o "$OUT"
echo "=== template ==="
cat "$OUT"
echo "Restore prod when done: pkill -f pog422_fixture_bridge; sudo systemctl start fixture-prod"
