v0.2.0 #5
HarrisonTotty
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New Features
Card
objects calledlegality
. This is adict[str, bool]
that holds the current legality of the card for each game format.graphics.pie_chart()
.Deck
objects to/from.txt
files. These are essentially deck lists with lines of the format{count} {full_name}
.Card.from_identifier()
, allowing you to create a card object from an identifierstr
. LikeCard.from_full_name()
, this requires a catalog.Deck.is_valid()
andDeck.filter_related()
now takes card legality into consideration.CardList.legality()
, which computes a mappingdict[str, bool]
as to whether a list of cards is legal for each format (that it doesn't contain any illegal cards for that format).meta
.Breaking Changes
Card.image_urls
is now simplified to typelist[str]
and thus breaksCardList.load()
against older versions of JSON files.Card.legality
field also breaksCardList.load()
against older JSON files.This discussion was created from the release v0.2.0.
Beta Was this translation helpful? Give feedback.
All reactions