We use the class definition syntax that we learned from the previous lectures to convert our Wordle module into a Wordle class! First we'll design the class, i.e., our own custom type; then we implement the class in order to create a word guessing game.

Lecture Prep

Review:

the slides, examples, and your notes from the previous lectures (Lectures 15-16) so that you are ready to apply what was discussed.


Lecture materials

Before: vocab.py , wordle_v2.py

After: wordle_v3.py

To download the above .py files, right-click (Windows) or command-click (Macs) on the filename and then select "Save link as".
This way you choose where the files will be saved, instead of having your computer save to the default folder (from which you will later have to move your files for organization).

Link to Lecture Recording