hadan24 / ygo-draft

MIT License
0 stars 0 forks source link

Learn API #1

Closed hadan24 closed 1 month ago

hadan24 commented 2 months ago

Access YGOPRODeck API, then save and print that data

hadan24 commented 2 months ago

Can get cards and print data (not async)

Find how to extract individual parts (attribute, atk, def, etc) of each card (hash map)

hadan24 commented 2 months ago

Can extract individual parts (much easier than expected!)

Figure out plan for dealing with the many Option<> fields

hadan24 commented 2 months ago

Created enums for several card properties

Likely will make separate structs for each type of card (monster/spell/trap/extra deck) and implement transformations from Card to each. More type safety leveraging

hadan24 commented 1 month ago

Refactored into modules. Created separate structs for each card type

Mappings from a general Card to each to come

hadan24 commented 1 month ago

Realized separating out each type of card was (most likely) unnecessary for MVP. Keeping progress in card folder, but code won't be used until later