TheAlgorithms / C

Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
https://thealgorithms.github.io/C
GNU General Public License v3.0
19.36k stars 4.4k forks source link

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

Closed anindyasen closed 1 year ago

anindyasen commented 2 years ago

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

anindyasen commented 2 years ago

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,

Panquesito7 commented 2 years ago

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

JKP0495 commented 2 years ago

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

ayushsinghh039 commented 2 years ago

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.

Give me a chance to contribute to this !!

github-actions[bot] commented 1 year ago

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 1 year ago

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!

CascadingCascade commented 1 year ago

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