taw / magic-search-engine

Search engine for Magic cards
MIT License
45 stars 20 forks source link

Deck limit query syntax #254

Closed taw closed 6 months ago

taw commented 1 year ago

It's been a few cards now, so maybe we should have a query:

I don't like this syntax especially decklimit=infinite part. Any better ideas for syntax?

axxroytovu commented 1 year ago

Since the mtg wording for it is "any number of cards named..." could you use decklimit=any? I know it doesn't mesh with how "any" is used in programming but it makes more sense from an MTG standpoint.

My other thought was decklimit=none to show "no limit" but that doesn't really fit either.

Also would there be support for decklimit>4 to show all the nonstandard cards?

taw commented 1 year ago

https://mtg.wtf/card?q=decklimit%3E4 works fine.

I don't like how decklimit=4 matches a lot of cards that don't go into decks in the first place, but there's not really that much reason for people to query decklimit=4.

Should not:maindeck imply decklimit=0 ?

taw commented 6 months ago

I think it's good enough, even if decklist=4 matching non-maindeck cards is weird, closing.