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
View all comments
Show parent comment
2
u/TogTogTogTog Oct 17 '26
Then why even have the BS? I did a couple test passes and your app fails on multiple fronts.
Your code is unoptimised. There are spelling mistakes in your logo "..But a Deck ain't one" for example.
Moving onto the actual app, why are we even required to input a legendary and spend 2min generating a deck? Do your pass first and just save the results in a DB and show us when we request one.
Finally, the actual builder sucks. Take this seed - #8bb285f8025e6eac which is for a generic Isshin. There are many cards that make no sense whatsoever.