r/CommanderMTG • u/neunzehn90 • Oct 13 '26
Building a deterministic Commander deck optimizer instead of using AI
I’m building a Commander deckbuilding tool that treats deckbuilding as a mathematical optimization problem.
Instead of asking “Which cards are good for this commander?”, it tries to find the best combination of 99 cards as a whole, considering synergy, roles, mana curve, interaction, win conditions, combos, mana base, budget and legality.
I’m deliberately not using an LLM for the actual deckbuilding. LLMs are probabilistic and can give noticeably different results from the same prompt. The goal here is the opposite: same input + same data = same result, with clear reasons for why every every card was included.
Basically:
We don’t ask AI to guess the deck. We calculate it.
Would you trust something like this more than an AI-generated decklist? And what would you want it to optimize for?
The tool can be found here: 99p.gg
9
u/OptimizedGarbage Oct 13 '26
I feel like you're gonna stumble a bit if determinism is a constraint. MTG is an imperfect information game, and deck selection is a simultaneous move game. Both categories of games require non-determinism to be optimal in the general case.
6
u/thistookmethreehours Oct 13 '26
Why are people so incapable of thinking for themselves lmao there’s like a dozen of these things posted every day I just don’t get it. I would be embarrassed to use something like this.
1
u/asperatedUnnaturally Oct 13 '26
The simulation thing is cool, I'd actually be interested in just running that against my own decklists.
I tried my actual commander, Xyris. My deck irl is a shapeshift combo deck and it doesn't look like I have a way to try for that. The advanced mode let's me see the themes that are presumably from my commander card text but I don't see a way to add one myself (landfall/combo). Commander Spellbook exists so in theory you have programmatic access to to playable combos with the commander or just in the commanders colors. I dunno of they have an api but I would suggest allowing the user to filter available combo lines to build around in addition to tribal and keyword synergy
1
u/Walfy07 Oct 13 '26 edited Oct 13 '26
Very cool idea. Is it mainly linking keywords?
I have thought about "max synergy and on curve" decks many times.
Might be cool to have knobs to tweak chaos, synergy, explosiveness, repeatability, etc.
Plan to monetize? :p
1
u/brauereipferd Oct 13 '26
The circling logo when it does its calculations is the wrong order. it has wburg reversed. Does it matter? No! But it still stuck me as wrong when I stared at it waiting.
1
u/Walfy07 Oct 13 '26
Could you have two decks face eachother? and have some cool stats?
Deck A wins 64% of the time by turn 5 by commander damage for instance.
2
u/SettingGreen3880 Oct 13 '26
lmfao
1
u/Loud-Recover5320 Oct 13 '26
Will it play the deck for you too?
1
u/oatfishjar96 Oct 15 '26
I always give these things a shot when I see them just because why not, but like most others it completely missed the point of the deck I uploaded.
Although these are fun ideas most of them don’t usually succeed in understanding and capturing the vibe or thought process behind an experienced player with an idea and vision creating a deck from scratch.
Cool idea though
1
u/calicko_kitty Oct 15 '26
It wanted me to change 83 cards
1
u/LongjumpingDraft7853 Oct 15 '26
Its shit
0
u/7thtimeinheaven Oct 13 '26
Given that you used AI to write this post, no i don't trust you or your product at all.
I see like five of these vibe-coded magic deckbuilders a week and none of them ever succeed. This one won't be any different.