magicciv/scripts/apricot/run_seeded.sh
Natalie 8ed21325c7 feat(autoplay): add weston rendering support
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-16 17:51:24 -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"