This tutorial covers single game execution, batch experiments, and parallel processing.
Run a single 5-player game with default settings:
python run_game.py --players 5Enable persistent storage for later analysis:
python run_game.py --players 7 --enable-db-loggingpython run_game.py --players 5 --model anthropic/claude-3.5-sonnetTest configuration with a small batch:
python run_game.py --batch --games 5 --players 5 \
--batch-tag "verification" \
--batch-id "verify-$(date +%Y%m%d-%H%M)"Run a full experiment with 100+ games:
python run_game.py --batch --games 100 --players 7 \
--enable-db-logging \
--batch-tag "production-deepseek-v3" \
--model deepseek/deepseek-v3.2-expCompare different models:
# Run same experiment with different models
for model in "deepseek/deepseek-v3.2-exp" "anthropic/claude-3.5-sonnet"; do
python run_game.py --batch --games 50 --players 7 \
--enable-db-logging \
--batch-tag "comparison-$(echo $model | tr '/' '-')" \
--model "$model"
doneWatch batch progress with live updates:
python check_batch_progress.py --watchCheck progress at a specific point:
python check_batch_progress.pypython check_batch_progress.py --watch --interval 10Each batch creates a metadata file at logs/.current_batch:
{
"batch_id": "batch-20251101-143000-a1b2c3d4",
"batch_tag": "production-deepseek-v3",
"start_time": "2025-11-01 14:30:00",
"target_games": 100,
"players": 7,
"model": "deepseek/deepseek-v3.2-exp"
}| Output Type | Location |
|---|---|
| Game logs | logs/<game-uuid>/game.log |
| Batch metadata | logs/.current_batch |
| SQLite database | data/games.db |
| Visualizations | visualizations/ |
| Reports | reports/ |
- Always verify first: Run a 5-game verification batch before production runs
- Enable database logging: Use
--enable-db-loggingfor any analysis - Use descriptive tags:
--batch-taghelps identify experiments later - Monitor costs: Watch API usage during initial experiments
- Document configuration: Record model, player count, and parameters
Check logs for JSON parsing errors:
grep -i "parse" logs/*/game.log | tail -20Use cost-effective models for initial testing:
python run_game.py --model deepseek/deepseek-v3.2-expEnsure data/ directory exists:
mkdir -p data- Analyzing Results - How to analyze your data
- Custom Models - Adding new LLM models