Outline for December 1, 2025
Reading:
none
Assignments:
Homework 5/Project, due December 8, 2025
Write program to help solve Wordle
Sketch out goals, inputs and outputs, and approach
Implement it step-by-step
Step 1: read word list [
wordle-1.py
]
Step 2: eliminate words that are not exactly 5 characters long [
wordle-2.py
]
Step 3: read pattern, characters that must be in the word (“good letters”), characters that are not in the word (“bad letters”) [
wordle-3.py
]
Step 3a: check no letters are both good and bad [
wordle-3a.py
]
Step 4: eliminate words containing bad letters [
wordle-4.py
]
Step 4a: make all letters lower case [
wordle-4a.py
]
Step 5: Eliminate words with no good letters [
wordle-5.py
]
Step 6. Eliminate words that do not match a pattern [
wordle-6.py
]
Step 7. If word list named on command line, use it [
wordle-7.py
]
Step 8. Now clean up the code [
wordle-8.py
]
Empty pattern causes error; check for it
Check for invalid patterns *before* asking for other inputs
Eliminate printing pattern, and good and bad letters
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email:
mabishop@ucdavis.edu
MHI 289I, Programming in Health Informatics
Version of December 2, 2025 at 10:28AM
You can also obtain a PDF version of this.