#!/bin/sh # Play a case. No arg = the first one. # ponytail: MRPGI lives next door; no vendoring, no submodule. set -e ENGINE="${MRPGI:-$HOME/Documents/MRPGI}" CASE="${1:-$(ls -d cases/*/ | head -1)}" [ -f "$CASE/game.json" ] || { echo "no game.json in $CASE"; ls -d cases/*/; exit 1; } exec cargo run --release -p mrpgi --manifest-path "$ENGINE/Cargo.toml" -- \ --game "$(cd "$CASE" && pwd)"