Work

Word Practice Terminal

Python prototype ยท August 28, 2023

An early terminal-based spelling game that turns a user-selected word into five progressive rounds of letter-by-letter recall, definitions, streaks, and coin scoring.

Context

Word Practice began as a small exploration of whether a command-line interface could make spelling practice feel playful. Rather than presenting a fixed list, the prototype looks up a word supplied by the player, shows its definition, and asks for the hidden letters one at a time.

How it works

A session moves through five levels. It begins by hiding vowels, then consonants; later levels reveal only the first and last letters, only the first letter, and finally no letters at all. A correct guess extends the current streak and earns the next value in that streak. An incorrect guess resets it to zero.

The score therefore rewards both accuracy and length. Long words contain more opportunities to maintain a streak, so words such as supercalifragilisticexpialidocious and pneumonoultramicroscopicsilicovolcanoconiosis can produce much larger totals when completed without an error.

Terminal captures

Captured from the original terminal interface. The cat, sack of coins, color feedback, definition, and prompt are all part of the Python prototype.

Word Practice at level one showing the phrase carry on with vowels hidden and a prompt for the second missing letter.
A short phrase begins with vowels hidden.
Word Practice at level one showing a masked prompt for the long word pneumonoultramicroscopicsilicovolcanoconiosis.
A long-word round demonstrates the scale of the letter-by-letter challenge.
Word Practice at level one showing a masked prompt for supercalifragilisticexpialidocious.
A familiar long word makes the scoring incentive immediately visible.
Completed Word Practice game showing 40 coins, Mega Strike, and a new highest score.
A completed, error-free run earns a Mega Strike and saves a local high score.

Run the original

The source remains a terminal application, rather than a browser rewrite. Open it in GitHub Codespaces, install the two Python dependencies, and run the script from the integrated terminal.

  1. Open the repository in Codespaces.
  2. Run python -m pip install -r requirements.txt.
  3. Run python word_practice_free.py.
  4. Enter a lowercase English word or phrase and follow each prompt.

Open the terminal prototype

Technical notes

The project uses Python with requests and colorama. It saves a personal best to highest_score.txt in the local working directory. DictionaryAPI is preferred for definitions and phonetics; Datamuse provides a definition fallback when a terminal environment is challenged by DictionaryAPI's bot protection. The fallback does not supply phonetics.

The game is preserved as an early prototype: its direct prompts, screen clears, ASCII cat, and local score file are intentional records of the original interaction design.

View the source on GitHub