-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check against ban list #11
Comments
I'm probably going to work on this next. |
For Standard, you may want to look into using http://whatsinstandard.com to help with set verification logic. |
Where do you get your card info from or how do you create it? @april In case you use https://github.com/mtgjson/mtgjson as source for your minimized database, they might have data on banned cards for several tournament types, too. All changes are posted to |
a good portion of the necessary information is there, it is just not checked @tooomm |
Yes, it's all pulled from mtgjson. Note that the site is designed to work completely offline, so it includes an entire copy of the card database in the JavaScript, for example:
Could probably add a ban key, such as:
|
You use If possible I suggest you get the information from wizards directly at one point, if one can parse that page properly... I guess you use some kind of script to generate your database? Is that part of the repo? |
generatecards.sh does the work of updating the cards definition file. |
This is the comment in the code for what the keys mean:
|
So I guess I already have the ban list in there, it's just not exposed obviously. :) |
Haha, I was about to link to that in parsecards.py @april :D Yep, it looks like it's already included. Great! |
Yeah, it's a partial ban list (no legacy yet, because of banned v. restricted), since my semester has nearly finished, I'll probably go back to working on that soon. I've started working on that (locally) |
I was thinking v for vintage banned, r for vintage restricted. |
Legacy is already in there, there's only Vintage that isn't. |
Why are card names printed twice in the database? Another thing to consider for the ban-feature: |
The key is what is likely to be entered into a decklist and the name is the canonical name that appears on the PDF. |
Are they any different? All entries I checked were identical... besides capitalization. |
Much like the multiple pages, I also do format legality checking in my fork - so feel free to copy that too if you like |
@tooomm The idea is that the key used to locate the correct card is all lowercase, and the output is the properly capitalized form. |
@Fryyyyy I'll probably do that when I get to this issue. |
For Standard, Modern, or Legacy, verify cards against the ban list.
The text was updated successfully, but these errors were encountered: