1 / 10

What You're About to Build

No new ideas today. Every piece of this lesson is something you already have.

By the end of it you will have written a class for a game player. It arrives complete, knows its own name, takes a hit, scores a point — and when you print it, it describes itself as something like Player(Ada, health=70, score=1).

Nine lessons ago that would have been a dictionary and four loose functions — and any one of those functions could have been pointed at a car.