violll / pokemonDataTools

0 stars 0 forks source link

Thought for scrapeEvoLines.py : maybe use custom class in addition to / instead of bigtree? #3

Closed violll closed 3 months ago

violll commented 6 months ago

Custom class:

class Pokemon:
     def __init__(self, name, parent, children):
          self.name = name
          self.preEvolution = parent
          self.nextEvolution = children

name str parent str children list(str)

And the data is stored in a set of instances of the custom class, for easy searching

violll commented 3 months ago

Another idea:

Continue using big-tree, but make it into one large tree, with a parent node called "Pokemon". This would allow tree search to work as intended