About the series

This series uses a familiar word game to explore progressively richer Python ideas. You will begin with strings, loops, files and terminal output, then move into Jupyter notebooks, visualisation, search strategies and natural language processing.

What you will build

A playable terminal game, a data-driven first-word analysis, a rule-based solver and an experimental AI player.

Episodes and code

Episode 1

Games Maker

Build a terminal version of the word game with a colourful results display, then create a usable word list from files on your computer.

Concepts

Strings, loops, conditions, functions, files and terminal output.

Episode 2

First Words

Investigate letter frequency and word patterns to compare different first-word strategies instead of relying on one universal answer.

Concepts

Jupyter notebooks, data processing, counting, visualisation and Matplotlib.

Episode 3

Solve Games

Turn the information from each guess into a shrinking set of possible words and make strategic choices for the next move.

Concepts

Filtering, search strategies, state, constraints and algorithmic decision making.

Episode 4

Robot Brain

Experiment with natural language processing and public word-game data to see whether an AI approach improves on the rule-based solver.

Concepts

Natural language processing, experimentation, model limitations and comparing approaches.