{"ops":[{"insert":"There should be a filter that allows you to only see cards that are not in your deck. This would make it a lot easier to build a deck out of cards you already have because you wouldn't have to check what cards are in what decks.\n"}]}
2

{"ops":[{"insert":"Not in a specific deck, or not in any of your decks?\n\nThe former is possible, though I don't see the use case. The latter isn't really possible since we'd need to load too much data (tens, hundreds, thousands of decks per user). \n\nIf you mean the former, could you elaborate a bit as to why this would be useful?\n"}]}
0
{"ops":[{"insert":"Not the original poster, but I can. I’m just getting back into Magic after many years and have one precon and a bunch of old cards, plus some new acquisitions. I’ve digitized my entire library, but not before wrangling 99 into a really lousy “jalopi” of a Commander deck. It needs an overhaul, but I don’t want to steal from my precon to do that.\n\nI also do a bit of programming, and this process should be pretty straightforward. Just add every card in the collection to a hashset where each element is [name, block, card, quantity]. Then, for each card in the deck to exclude, match against [name, block, card] then subtract [quantity] from the hashset entry. The result is a complete list of cards not in a given deck. This could be repeated for arbitrarily many decks. You’d be looking at a worst-case time complexity of O(n^2) and an average time complexity of O(n), where n is the number of cards in the collection. Even for a collection with 10,000 cards, you’d be looking at worst-case roughly 200,000,000 operations, so maybe a second or two to complete, and RAM consumption of maybe a few megs.\n"}]}
Edited 5/10/2025, 8:44:56 PM
0