ygo_export_selfplay
Simulate policy-vs-policy Yu-Gi-Oh! games on the real engine and export each decision (legal options, chosen action, result) as JSONL training data for behavioral cloning or reinforcement learning.
Instructions
Play policy-vs-policy games on the real engine and export every decision as JSONL (request type, legal option codes, chosen action, result). This is the training-data generator for behavioural cloning / reinforcement learning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed | |
| deckA | Yes | Main Deck A | |
| deckB | Yes | Main Deck B | |
| games | No | Games (1-50) | |
| extraA | No | ||
| extraB | No | ||
| outPath | No | Output .jsonl path (defaults to data/ai/) | |
| maxSteps | No | Engine steps per game (a full game needs ~400-2000; 120 only reaches turn 3) |