RedditPP Mascot

RedditPP

r/yugioh • … • u/Hovi_Bryant

Using Linear Programming to Build a Competitive Deck (with combos)

Edit: The feedback is overwhelming. Thanks a ton.

10/18/16 Update

* [The tool is available via Google Sheets now](https://docs.google.com/spreadsheets/d/1UmJPFQ2LazwG_8lySpSt3DkcBN41kTy9mNbfPLU4PSU/edit?usp=sharing). VBA script free, albeit a few extra steps are required.

One plus is that this version of the tool seems to provide super accurate calculations over its MS Excel based counterpart. Why? I'm still looking into that, but in the meantime, enjoy.

[10/17/16 Update](http://ezellf.com/blog/?p=156):

* Fix to improve 60 card-limit decks and combos. * Fix to Pro version probability rating system (a double subtraction existed in one formula; Red-Eyes is actually ~73% consistent).

I know a good amount of individuals are using Macs, in which some versions of Excel are programmed a bit differently than the version I use. Thus, I'm working on a tool that uses no VBA script, as well as a Google Sheets version that requires only a web browser.

In addition for Windows users with difficulty setting this up, I'm working on providing a written walk-through on my blog, along with some general FAQ/Troubleshooting.

---

Hey,

Some of you may (or may not) remember my [previous thread](https://www.reddit.com/r/yugioh/comments/4ldh6x/using_linear_programming_to_build_a_deck_tell_me/) on this subject. However, here is the return and with much improvement in terms of how a user will want to construct their deck.

The purpose of this tool is to help duelists create a deck that is not only economical in terms of generating net card advantage, but also ensure the highest level of consistency with opening hands for each duel.

Previously, the tool focused on generating card advantage, however it required too much hand-holding to ensure specific card combinations would fit within the final results.

I can finally say this is no longer an issue.

I strongly believe the difference between a highly competitive duelist and everyone else is the skill required in deck building. Determining ratios for card combinations, maintaining card advantage, and managing extra space to either boost consistency or disruption is more than half the battle. And I'm happy to say I have something that can help in that regard.

Similar to my last thread, here's a sample of a Blue-Eyes deck that I created with the tool just a moment ago:

Main Deck|Quantity| :--|:--:| Blue-Eyes White Dragon|3| Blue-Eyes Alternative White Dragon|3| Dragon Spirit of White|1| The White Stone of Ancients|3| The White Stone of Legend|2| Sage with Eyes of Blue|3| Maxx "C"|2| Galaxy Soldier|3| Return of the Dragon Lords|3| Silver's Cry|2| Dragon Shrine|3| Foolish Burial|1| The Melody of Awakening Dragon|3| Twin Twisters|3| Soul Charge|1| Solemn Strike|2| Solemn Warning|1| Vanity's Emptiness|1|

Extra Deck|Quantity| :--|:--:| Azure-Eyes Silver Dragon|2| Blue-Eyes Spirit Dragon|3| Crystal Wing Synchro Dragon|1| Michael, the Arch-Lightsworn|1| Black Rose Moonlight Dragon|1| Ancient Fairy Dragon|1| Number 95: Galaxy-Eyes Dark Matter Dragon|1| Galaxy-Eyes Full Armor Photon Dragon|1| Galaxy-Eyes Cipher Dragon|1| Number 38: Hope Harbinger Dragon Titanic Galaxy|1| Cyber Dragon Nova|1| Cyber Dragon Infinity|1|

**Summary Statistics (5 card opening hand)**

* 2% chance of a completely unplayable hand * 48% chance of using Galaxy Soldier/Melody of Awakening Dragon * 25% chance of a Dragon Shrine/Foolish Burial + revival card combo * 26% chance of summoning a Blue-Eyes monster using Sage's second effect * 11% chance of drawing BEWD + BEAWD * The deck has room for 8 cards that can be anything, and will have no effect on the probabilities (Twin Twisters, one copy of The White Stone of Legend, Solemn Strike, Solemn Warning, and Vanity's Emptiness)

The total probability of mutually exclusive combos is ~68%, which is above twice out of every three duels. In other words, the deck is highly consistent.

Using the tool, I've learned a few things about what separates a good deck from the others.

Decks are always as strong as its weakest link. In the case of Blue-Eyes, given the volume of high level monsters and suboptimal plays outside of the main combos, many players may want to scoop right away within that 32% window of suboptimal hands. In other words, the deck may be highly consistent, but when it isn't it's virtually unplayable.

However, in the case of other decks such as ABC (which is insanely consistent @ ~74%-76% depending on the build), the deck's sub-optimal plays generally involve summoning or setting a single monster and it is flanked by a large amount of trap cards. An ABC user is much more likely to salvage a bad hand than a Blue-Eyes user.

Additionally, decks that make use of small plays appear to be far more dangerous than decks that rely on 3+ card combinations to function. Decks relying on single card plays and 2 card combos generally have so much more space within the deck for traps and other forms of disruption. Red-Eyes is highly interesting, as I have a build that is laden with traps, yet is just as powerful and consistent as any other deck in the meta, yet suffers the same "when it's bad, it's really bad" syndrome as Blue-Eyes.

Lastly, less is more. When building decks that have endless amount of combos, after a certain amount, adding more combinations has little to no effect on the total probability. I've only tried about 10 or so different archetypes, yet it seems as if most decks top out just under 78% in terms of distinct opening combos. Adding any more card combos to the mix will just reduce the probability percentage by a significant amount.

So if anyone's interested in the tool, you can [visit my blog](http://ezellf.com/blog/?p=156) for more details as well as a download link.

— 0