In this episode, we're continuing our Pokemon battle example, but with a twist: we're starting from scratch to re-envision our code in a more object-oriented way.
Previously, our code flowed very straight, from top to bottom, with the exception of a loop which represented the characters indefinitely taking turns. Now, we're thinking of our game as several 'objects' interacting with each other: in this case, 'Pokemon' and 'PokemonMove's.
I would've liked to have made more progress on this example, but we ended up spending a lot of time re-capping concepts that we touched on in previous episodes. By the end, though, I've said most of what I wanted to say about the very basics of classes. In the next episode, we'll have a fully-working version of the Pokemon combat system, again, but it'll be much more flexible for being built with classes.
If you want to read this code in both commentated and condensed forms, check out our github page at http://github.com/vencabot/intro_to_python ! If you have any questions, feel free to leave them here in the comments or hang out with us on Discord using the link below. We have an #introtopython channel, there! :D