Give Slopfish a deck, a hand, and a target board—or sit across from it in a full Duel. Built from scratch in C++ over 2,200+ rule-checked cards, with zero hand-written combos and strict process-level hidden information.
Name the end board you want—bosses, materials, locks, or an FTK. Slopfish searches legal plays straight from printed card effects with no hand-coded combo trees or archetype hacks.
Past turn one, it plays both seats to the end through hand traps, chains, and negates. Every AI seat runs in its own isolated OS process and sees only what a player at the table can see.
Duel the engine live with custom lists, inspect every legal move in step-by-step replays, or try Challenges: step directly into a recorded turn from the models' own games to see if you can outplay the AI.
Search the card pool, check legality across Modern, retro, and point-based formats, share YDK/YDKE/URLs, or drop in a deck screenshot—recognized 100% locally in your browser without uploading images.
No hand-written deck scripts, no peeking at hidden cards, and no pre-game prep per decklist. In head-to-head mirror matches from both seats with identical deals and clocks, Slopfish posts a winning record against every open-source Yu-Gi-Oh! AI we could run.
| Opponent | Architecture | Scored | Slopfish W–L | Score (95% CI) |
|---|---|---|---|---|
| tsoj alpha-beta | Search + belief model + learned evaluation | 117 | 110–7 | 94% (88–97%) |
| tsoj MCTS | Monte Carlo tree search on reconstructed duels | 130 | 121–9 | 93% (87–96%) |
| tsoj heuristic / greedy / random | Hand-written priorities, 1-ply lookahead, and random floor | 368 | 359–9 | 98% (96–99%) |
| WindBot Ignite | Hand-written per-deck C# executors (7 lists) | 52 | 49–3 | 94% (84–98%) |
| sbl1996 / ygo-agent | Deep RL policy (22.75B steps, 12 decks incl. 4 held-out) | 496 | 391–105 | 79% (75–82%) |
| All seven rivals | Paired mirrors, both seats, identical deals & clock | 1,163 | 1,030–133 | 89% (87–90%) |
Measured on paired mirror matches played to completion from both seats (current snapshot: model t31; a winning record on all 12 decks against ygo-agent, with 9 of 12 decks serving as pre-referee-fix floors). Games where the two simulators diverge on an edge-case ruling are excluded as void, so per-rival rows are readings on completed games rather than formal ratings. *Card and ruling counts as of writing (November 2026).
A solver is only worth trusting if its rules are right. Most of the work in this project is getting chains, timings, and rulings exact—not hard-coding lines.
1. Onomatopaira: pitch Gagaga Ganbara Knight, add Gogogo Goblindbergh, Zubababancho Gagagacoat 2. Normal Summon Gogogo Goblindbergh -> SS Onomatokage from deck 3. Xyz Summon Gagagaga Girl using Gogogo Goblindbergh, Onomatokage 4. SS Zubababancho Gagagacoat from hand 5. Gagagaga Girl: detach 1 (Gogogo Goblindbergh), add Unbreakable Xyz Barrier -> search Dododo monster: Dodododo Warrior 6. Gagagacoat: revive Gogogo Goblindbergh from GY 7. Xyz Summon Gagagaga Magician using Zubababancho Gagagacoat, Gogogo Goblindbergh 8. Gagagaga Girl (granted): Utopic Future can make a second attack each Battle Phase 9. Xyz Summon Number F0: Utopic Future using Gagagaga Girl, Gagagaga Magician 10. Gagagaga Girl (granted): Utopic Draco Future can make a second attack each Battle Phase 11. Utopic Future -> Utopic Draco Future (3 materials) 12. SS Dodododo Warrior as Level 4 (sent Dodododwarf Gogogoglove to GY) 13. SS Onomatokage from GY 14. SS Dodododwarf Gogogoglove from GY 15. Xyz Summon Infernal Flame Banshee using Dodododo Warrior, Onomatokage 16. Banshee: detach 1 (Dodododo Warrior), add Agnimal Candle -> search Zubaba monster: Zubababancho Gagagacoat 17. SS Agnimal Candle (added by effect) 18. Gogogoglove: SS Zubababancho Gagagacoat from hand 19. Xyz Summon ZS - Utopic Sage using Dodododwarf Gogogoglove, Agnimal Candle 20. Utopic Sage: detach 2, SS ZS - Ascended Sage from Deck 21. Xyz Summon Number F0: Utopic Future Zexal using Infernal Flame Banshee, ZS - Utopic Sage 22. Xyz Summon Number 39: Utopia using Zubababancho Gagagacoat, ZS - Ascended Sage -> search Rank-Up-Magic Normal Spell: Hyper Rank-Up-Magic Utopiforce 23. Utopia -> Utopia Prime (3 materials) 24. Utopiforce: Utopia Prime -> Number 99: Utopia Dragonar (4 materials) END BOARD Number 99: Utopia Dragonar 4 materials Number F0: Utopic Draco Future 3 materials Number F0: Utopic Future Zexal 2 materials
The entire rules engine, canonical state hasher, and process-isolated seat architecture are written from scratch in C++20 with zero external runtime dependencies. Three real slices of the core:
SeatView decoded off a socket. Passing the referee's true state to an AI policy is a compile error, enforced by negative compile-fail tests.// expect: fails -- a seat's policy decides on its seat view only: // the referee's row is no decision it can be asked. #include "../../core/core.hpp" #include "../../seat/agent.hpp" int decide_on_truth(sfseat::Agent& agent, sfcore::Batch& truth) { return agent.decide(truth).is_null() ? 0 : 1; // <-- rejected at compile time } // seat/view.hpp (abridged) -- only Inbox (the socket reader) can construct a SeatView class SeatView { friend class Inbox; SeatView() = default; SeatView(const SeatView&) = delete; };
// Undo an XXH64 round using Newton's iteration mod 2^64 at compile time. // Lets 4-lane streaming hash canonical board states with zero buffering. constexpr uint64_t inverse_odd(uint64_t a) { uint64_t x = a; // a * a == 1 (mod 8) for (int k = 0; k < 5; ++k) x *= 2 - a * x; // doubles correct bits each step return x; } constexpr uint64_t kP1Inv = inverse_odd(kP1); static_assert(kP1 * kP1Inv == 1, "kP1Inv is kP1's inverse mod 2^64"); SF_HD inline uint64_t xxh_unround(uint64_t acc, uint64_t input) { return rotr64(acc * kP1Inv, 31) - input * kP2; }
// Decks pay 0 bytes per state for mechanics their cards never use. (abridged) SF_HD inline int room_of(const Engine& e) { return (e.has_mat_name ? kRoomName : 0) | (e.has_wide ? kRoomWide : 0) | (e.has_mat_race ? kRoomMatRace : 0) | (e.has_one_kind ? kRoomOneKind : 0) | (e.reads_heads ? kRoomHeads : 0) | (e.has_mat_original ? kRoomMatOriginal : 0) | (e.has_becomes ? kRoomCopyEvent : 0) | (e.has_damage_pending ? kRoomDamage : 0); } // One flat aligned allocation for every state field -> single memcpy copy.
-ffp-contract=off across AVX2/AVX-512, searches stay fast, RAM-light, and bit-deterministic across CPUs.The engine's origins come from a recognizable place: looking at a complex rank 4 slop hand and wondering whether or not you misplayed. From those simple beginnings, the project of creating a perfectly generic yugioh hand solver naturally followed, and it also follows that there should be some way of knowing whether or not your end board is also misplaying.
Slopfish seeks to bridge that gap. With this tool, we aim to fulfil these two goals fairly accurately in an engaging way. Downstream from just the solver, intended to be present are a deckbuilder, an optimizer, and a way to test hands against the algorithm yourself; all of these are trivial to develop once we've built the underlying system, so we thought "why not?".
Turns out building the underlying system though is a nightmare. But, at the same time, a fun nightmare, and a nightmare that I hope you all get to try for yourselves very soon.
Made by a couple people who just wanted to see a cool tool exist, Slopfish is made by a small but dedicated team. Fueled by curiosity, a need to optimize, and of course the desire to see what the community can do with this kind of promethean fire, we hope you're as excited about the idea behind Slopfish as we are.
Availability during this stage of development is extremely limited, but if you have a convincing enough use case we'd love to hear about it. Less of a wait list and more of a "I'll get back to you", for a brief while longer, unless you're a competitive circuit player, you'll be holding on for just a bit more. If you are a competitive circuit player and willing to review lines and give feedback, you're welcome to try out the tool.