You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[#1]
Add the ability to construct a card from indicated fields. This should lower memory and computation overhead.
Currently, I can think of two ways to do this:
Specify which fields to parse/construct in the initial call for Card class
Add a Filter object. This class should interface with Card to limit construction to wanted fields. Additionally, it should interface with higher level container classes like Decks.
[ankideckconstructor] card.py (Lines 32-36)
def __generate_field_dict(field_names, fields):
field_dict = {}
for idx in range(len(field_names)):
field_dict[field_names[idx]] = fields[idx]
return field_dict
[#1]
Add the ability to construct a card from indicated fields. This should lower memory and computation overhead.
Currently, I can think of two ways to do this:
[ankideckconstructor] card.py (Lines 32-36)
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream
The text was updated successfully, but these errors were encountered: