magicciv/scripts/autoplay/run_seeded.sh
Natalie b70a396f14 feat(@projects/@magic-civilization): implement gpu-mcts rollouts
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-17 12:25:47 -07:00

21 lines
567 B
Bash
Executable file

#!/bin/bash
# Seeded autoplay runner. Delegates to run_ap3.sh with seed and turn limit.
#
# Usage: run_seeded.sh [seed=1] [turn_limit=200]
# Set RENDER_MODE=weston for screenshot-capable runs (default: headless).
set -uo pipefail
SEED="${1:-1}"
TURN_LIMIT="${2:-200}"
DIR="$HOME/tmp/ap_seeded_${SEED}"
rm -rf "$DIR"
mkdir -p "$DIR"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
AUTO_PLAY=true \
AUTO_PLAY_SEED="$SEED" \
AUTO_PLAY_TURN_LIMIT="$TURN_LIMIT" \
AUTO_PLAY_DIR="$DIR" \
RENDER_MODE="${RENDER_MODE:-headless}" \
bash "$SCRIPT_DIR/run_ap3.sh"