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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deckA": "<deckA>",
"deckB": "<deckB>"
},
"name": "ygo_export_selfplay"
}
}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) |