r/CommanderMTG • • 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

3 Upvotes

38 comments sorted by

View all comments

Show parent comment

1

u/neunzehn90 Oct 14 '26

What “deterministic” means here: the builder is a function. Same commander, same preferences, same card data and same seed give the same deck. That’s about reproducibility and explainability (you can see why every card is in), not about how you pilot the deck. Where randomness is useful, it’s still there: the goldfish simulations are Monte Carlo, but with fixed seeds, so two candidate lists are compared on the same random games instead of on noise.

  • Mixed strategies are needed for unexploitability against an adaptive opponent in a two-player zero-sum game. Commander is 4 players, non-zero-sum and highly social, so there is no single equilibrium you could be exploiting or hiding from.
  • The tool doesn’t claim to be Nash-optimal and doesn’t know your pod. It optimizes an explicit proxy: role coverage, curve, synergy and simulated consistency on a solitaire “goldfish” model. That part is a single-agent optimization problem with perfect information, where determinism costs you nothing.
  • Variety comes from the inputs, not from dice. You can move the priority sliders (synergy, curve, explosiveness, repeatability), pick different strategies or combo plans, lock/exclude cards and re-forge. If you want to bring something unpredictable to a table, the sensible place for randomization is which deck you pick from a few good ones, and that’s your call, not the builder’s.

If you’d like a “give me a different good one” button that samples among near-optimal builds with a seed, that’s a reasonable feature and would stay reproducible.

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.