Hangman Game Command
See original GitHub issueDescription
A hangman game command where the user can play as the guesser or the executioner. When the player is a guesser, they will guess letters one at a time. Each time, the bot will show how hanged the man is and if the half-guessed word. By default, the word will be 4-8 letters long and will have 3-4 unique letters. When the player is the executioner, the bot will first guess a letter and receive confirmation or denial about the guess from the player. If the player says the bot guessed a letter correctly, they will be prompted to provide a list of positions where the letter appears. After that, the bot will display how hanged the man is and how the word is looking so far
Reasoning
While yes, this command will not provide any real usefulness, it will provide a fun game. It can be used to kickstart channel activity as other members will most likely pitch in with what they think the word is. Besides, do any of the commands on this bot really have a useful purpose?
Proposed Implementation
The command will have two different structures based on what the player chooses to be.
The guesser:
.hangman <"g"/"guess"/"guesser"> [min_word_len] [max_word_len] [min_unique_letters] [max_unique_letters]
or the executioner:
.hangman <"e"/"exec"/"executioner"> <word_len>
To make the game varied and more or less interesting, it would require a .txt file with the ~10000 most common English words. The file would also have to be accessible to change by the script as new words are added when players come up with words that aren’t in the file. To avoid channel spam, each time the bot displays a new embed it will delete the old one. Since the player will also be writing a lot of messages, the bot will also delete all game commands issued by the player besides the most recent one.
Would you like to implement this yourself?
- I’d like to implement this feature myself
- Anyone can implement this feature
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (10 by maintainers)
Top GitHub Comments
@Shom770 I am pretty sure that you are allowed to work with multiple people on one PR. Cool, thanks so much!
@DMFriends Sounds great! I haven’t contributed much so I don’t really know if multiple people are allowed to help on one PR (I would presume so) but if you ever have time I would be more than glad to have you help out if you wanted to!