Skip to content

Sync hangman-tui with the updated tutorial - #972

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/python-hangman-20261201
Dec 1, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/python-hangman-20261201

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs hangman-tui/ with the current state of the tutorial Build a Hangman Game for the Command Line in Python as its maintenance update draft has it.

What changed

  • source_code/words.txt: two words now match the list the article shows (likeable -> likable, overdose -> love).
  • source_code/hangman.py: the game loop's print() call splits the string the same way the article does, which also brings the line under the repo's 79-character limit. No behavior change.

Context

Verification

  • Ran hangman.py headless with scripted input on Python 3.x; output matches the article's sample session format.
  • ruff@0.14.1 format --check and ruff check pass on the folder; dircheck.py passes.

🤖 Generated with Claude Code

realpython-bot and others added 2 commits December 1, 2026 13:00
Match words.txt and the game loop's print() call to the code the
Build a Hangman Game for the Command Line in Python tutorial shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 726fdec into master Dec 1, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-hangman-20261201 branch December 1, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant