Skip to content

Add replay feature#85

Open
aaiiddaan7 wants to merge 2 commits intoBerat-O:mainfrom
aaiiddaan7:add-replay-feature
Open

Add replay feature#85
aaiiddaan7 wants to merge 2 commits intoBerat-O:mainfrom
aaiiddaan7:add-replay-feature

Conversation

@aaiiddaan7
Copy link
Copy Markdown

Summary

Added a replay feature to the guessing game so users can play multiple rounds without restarting the script.

Changes made

  • Wrapped the main game logic in a loop to allow repeated play
  • Added a prompt asking the user if they want to play again (y/n)
  • Ensured the game resets correctly each time with a new random number and fresh attempts
  • Preserved existing input validation and game behaviour

Why

Previously, the game ended after a single round, requiring the user to rerun the script to play again. This change improves the user experience by making the game continuous and more interactive.

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