[FEATURE]Hangman - The classic word guessing game #118

Closed
opened 2026-01-29 15:04:11 +00:00 by claunia · 7 comments
Owner

Originally created by @anindyasen on GitHub (Sep 30, 2022).

Originally assigned to: @anindyasen on GitHub.

Detailed description

Implementation of the popular hangman game in C as a part of games in the repository. Hangman is word guessing game where the program will randomly pick a word from a word pool and represent it's letter in dashes"_ _ _". Now the user has to guess the right word within a particular number of chances.

Context

This Hangman game is a good example of user-define data structure. A hash table where alphabets are key and the index at which that alphabet is present in the word are its value.

Possible implementation

  1. We will maintain a word pool in a file
  2. program will select a word from the file randomly.
  3. This word will be stored in a data structure to determine the guess of the users and also if the user is guessing the same letters again.

Additional information

No response

Originally created by @anindyasen on GitHub (Sep 30, 2022). Originally assigned to: @anindyasen on GitHub. ### Detailed description Implementation of the popular hangman game in C as a part of games in the repository. Hangman is word guessing game where the program will randomly pick a word from a word pool and represent it's letter in dashes"_ _ _". Now the user has to guess the right word within a particular number of chances. ### Context This Hangman game is a good example of user-define data structure. A hash table where alphabets are key and the index at which that alphabet is present in the word are its value. ### Possible implementation 1. We will maintain a word pool in a file 2. program will select a word from the file randomly. 3. This word will be stored in a data structure to determine the guess of the users and also if the user is guessing the same letters again. ### Additional information _No response_
claunia added the enhancementdont-close labels 2026-01-29 15:04:11 +00:00
Author
Owner

@anindyasen commented on GitHub (Oct 1, 2022):

Hi @palaniappan-r I am planning to work on this issue. I raise this bug to get maintainers/reviewers opinion on if this idea can be merged in C/games folder.
Thank you,

@anindyasen commented on GitHub (Oct 1, 2022): Hi @palaniappan-r I am planning to work on this issue. I raise this bug to get maintainers/reviewers opinion on if this idea can be merged in C/games folder. Thank you,
Author
Owner

@Panquesito7 commented on GitHub (Oct 3, 2022):

Great explanation. Feel free to work on it. 🚀
Before submitting a PR, please ensure the following:

  • The algorithm/implementation isn't a duplicate in this repository.
  • Make your code per the repository standards.
  • Ensure that all the automated-tests pass.
@Panquesito7 commented on GitHub (Oct 3, 2022): Great explanation. Feel free to work on it. 🚀 Before submitting a PR, please ensure the following: * The algorithm/implementation isn't a duplicate in this repository. * Make your code per the repository [standards](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md). * Ensure that all the [automated-tests](https://github.com/TheAlgorithms/C-Plus-Plus/actions) pass.
Author
Owner

@JKP0495 commented on GitHub (Oct 6, 2022):

please assign this to me, i will do it in a day...please, i am good at making this type of games

@JKP0495 commented on GitHub (Oct 6, 2022): please assign this to me, i will do it in a day...please, i am good at making this type of games
Author
Owner

@ayushsinghh039 commented on GitHub (Oct 19, 2022):

This sounds intimidating !!
This will be a great opportunity for me to contribute to this. There are some changes that can be made in the conventional game.

  • What if we give them the first letter already.
  • This will make the game more engaging.
  • If this works, we can also then give them one of the letters in between the words.

Give me a chance to contribute to this !!

@ayushsinghh039 commented on GitHub (Oct 19, 2022): **This sounds intimidating !!** This will be a great opportunity for me to contribute to this. There are some changes that can be made in the conventional game. - What if we give them the first letter already. - This will make the game more engaging. - If this works, we can also then give them one of the letters in between the words. **Give me a chance to contribute to this !!**
Author
Owner

@github-actions[bot] commented on GitHub (Jan 6, 2023):

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions[bot] commented on GitHub (Jan 6, 2023): This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 13, 2023):

Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

@github-actions[bot] commented on GitHub (Jan 13, 2023): Please ping one of the maintainers once you add more information and updates here. If this is not the case and you need some help, feel free to ask for help in our [Gitter](https://gitter.im/TheAlgorithms) channel or our [Discord server](https://the-algorithms.com/discord/). Thank you for your contributions!
Author
Owner

@CascadingCascade commented on GitHub (May 1, 2023):

I guess it's safe to finally close this now, yeah?

@CascadingCascade commented on GitHub (May 1, 2023): I guess it's safe to finally close this now, yeah?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#118