#100DaysOfCode in Python Transcripts
Chapter: Days 13-15: Text-based games (and classes)
Lecture: Introduction to the chapter
0:00 Michael Kennedy here and I'm going to be your guide for the next three days. We're going to have a lot of fun working with classes and objects.
0:10 This is one of the fundamental ways to model things, concepts in your application. And you'll see that classes very naturally map to
0:20 sort of real world ideas and more general stuff, that gets more specialized like, say, a car versus a Ferrari. Right, a car is this general idea.
0:30 A Ferrari also is a car but a more specialized type of car. And we're going to actually build some really fun games.
0:37 We'll build one in the demo and then I'll hand off a separate game for you to build. So we're going to build this little
0:43 Dungeons and Dragons wizard game. It comes in just says, "Hello, it's the wizard game." And we have this wizard, Gandalf.
0:50 And he will encounter various creatures in his little world. And he has three options: he can attack, or run away, or look around.
0:59 And so you can see we're entering various commands. R, A and L. So, first we run away and then the wizard sees a bat. It's not very strong so he thinks
1:07 he can attack the bat and win. He does. And was very, very close actually. They basically hide but he had the element of surprise, so he beat the bat.
1:15 And then he can look around and see what else is there. The toad, the tiger; not so scary. Level 1000 evil wizard then he's probably
1:25 getting away from that thing. Alright, so, this is what we're going to build and we're going to build it by modeling these ideas
1:31 in this little game using classes.