Closed violll closed 3 months ago
Custom class:
class Pokemon: def __init__(self, name, parent, children): self.name = name self.preEvolution = parent self.nextEvolution = children
And the data is stored in a set of instances of the custom class, for easy searching
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
Custom class:
name str parent str children list(str)
And the data is stored in a set of instances of the custom class, for easy searching