Skip to content

Add difficulty levels to Hangman and Number Guessing#948

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
avzuha:feat/game-difficulty-levels
Jun 1, 2026
Merged

Add difficulty levels to Hangman and Number Guessing#948
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
avzuha:feat/game-difficulty-levels

Conversation

@avzuha
Copy link
Copy Markdown
Contributor

@avzuha avzuha commented Jun 1, 2026

📝 Description

This PR adds selectable difficulty levels to both the Number Guessing and Hangman games, improving replayability and providing a progressive challenge for users.

Number Guessing

  • Added a difficulty selection screen before starting the game.
  • Easy: Number range 1–100 with 10 attempts.
  • Medium: Number range 1–100 with 7 attempts.
  • Hard: Number range 1–200 with 5 attempts.
  • Added attempt-limit game over logic.

Hangman

  • Added a difficulty selection screen before starting the game.
  • Easy: Short, common words.
  • Medium: Existing word list.
  • Hard: Longer technical/programming-related words.

These changes allow users to choose a challenge level that matches their experience while preserving the original gameplay through the Medium difficulty option

Closes #641


📋 Contribution Checklist

  • My code strictly adheres to the project guidelines (Standard library only, procedural code, clean spacing).
  • I have verified that my files are placed in the correct directory.
  • I have tested my changes thoroughly on my local machine.
  • I have included interactive emojis and clean console/UI outputs.
  • GSSoC 2026: I have been formally assigned to this issue and noted it above.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@avzuha is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 merged commit f69821d into steam-bell-92:main Jun 1, 2026
9 of 10 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 [Feature]: Add difficulty levels (Easy / Medium / Hard) to Number Guessing and Hangman

2 participants