ygo_ai_benchmark
Benchmark a heuristic Yu-Gi-Oh! duel AI across seeded real-engine games, alternating first player and optionally having the AI pilot both decks to compare matchups or test card/deck changes.
Instructions
Benchmark the heuristic duel AI over N seeded games on the real engine, alternating who goes first. aiSide 'alternate'/'A'/'B' = AI vs the passive default responder; aiSide 'both' = deck A vs deck B matchup with the AI piloting both decks (use this to test a custom card or deck change). Returns win rates, average game length and LP remaining. The AI is a policy, not a trained model — treat the number as a sanity check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed | |
| deckA | Yes | Main Deck A (passcodes or names) | |
| deckB | Yes | Main Deck B (passcodes or names) | |
| games | No | Games to play (1-50) | |
| aiSide | No | Which side uses the AI. 'both' = matchup mode: the policy pilots both decks and the result is deck A's win rate vs deck B | alternate |
| extraA | No | ||
| extraB | No | ||
| maxSteps | No | Engine steps per game (a full game needs ~400-2000; 120 only reaches turn 3) | |
| maxTurns | No | Stop a game after this many turns (reported as unfinished, never as a win) | |
| startingLP | No | Starting LP (2000 finishes benchmarks faster) | |
| exploration | No | Policy randomness (0-1) |