Skip to content

Add number guessing game in Python#1

Open
ConsoleTech wants to merge 3 commits into
mainfrom
claude/implement-todo-item-5SMs7
Open

Add number guessing game in Python#1
ConsoleTech wants to merge 3 commits into
mainfrom
claude/implement-todo-item-5SMs7

Conversation

@ConsoleTech
Copy link
Copy Markdown
Owner

Summary

  • Adds guess.py, a simple terminal-based number guessing game
  • Players have 7 attempts to guess a random number between 1 and 100
  • Provides "too high" / "too low" hints after each guess and a play-again prompt at the end

Test plan

  • Run python guess.py and verify the game starts correctly
  • Confirm hints (too high / too low) display after each wrong guess
  • Confirm the game ends with the correct message after 7 failed attempts
  • Confirm play-again prompt works for both y and n inputs
  • Confirm invalid (non-numeric) input is handled gracefully

https://claude.ai/code/session_01TpAVYMu6byNAutP2ZbpJTd


Generated by Claude Code

claude and others added 3 commits May 5, 2026 12:36
Players have 7 attempts to guess a random number between 1 and 100,
with high/low hints after each guess and a play-again prompt.

https://claude.ai/code/session_01TpAVYMu6byNAutP2ZbpJTd
Rejects guesses outside 1-100 without consuming an attempt, giving
players a clearer error message instead of a misleading "too low/high".

https://claude.ai/code/session_0183ETgjbH8CBsS9UNNHxc1S
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.

2 participants