|
|
|
@ -8,6 +8,8 @@ from redbot.core import Config, checks
|
|
|
|
|
|
|
|
|
|
class Hangman:
|
|
|
|
|
"""Lets anyone play a game of hangman with custom phrases"""
|
|
|
|
|
navigate = "🔼🔽"
|
|
|
|
|
letters = "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿"
|
|
|
|
|
|
|
|
|
|
def __init__(self, bot):
|
|
|
|
|
self.bot = bot
|
|
|
|
@ -23,9 +25,6 @@ class Hangman:
|
|
|
|
|
self.answer_path = "hangman/data/hanganswers.txt"
|
|
|
|
|
self.winbool = defaultdict(lambda: False)
|
|
|
|
|
|
|
|
|
|
self.letters = "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿"
|
|
|
|
|
self.navigate = "🔼🔽"
|
|
|
|
|
|
|
|
|
|
self.hanglist = {}
|
|
|
|
|
|
|
|
|
|
async def _update_hanglist(self):
|
|
|
|
@ -290,7 +289,7 @@ class Hangman:
|
|
|
|
|
|
|
|
|
|
async def _printgame(self, channel):
|
|
|
|
|
"""Print the current state of game"""
|
|
|
|
|
c_say = ("Guess this: " + str(self._hideanswer(channel.guild)) + "\n"
|
|
|
|
|
c_say =("Guess this: " + str(self._hideanswer(channel.guild)) + "\n"
|
|
|
|
|
+ "Used Letters: " + str(self._guesslist(channel.guild)) + "\n"
|
|
|
|
|
+ self.hanglist[self.the_data[channel.guild]["hangman"]] + "\n"
|
|
|
|
|
+ self.navigate[0] + " for A-M, " + self.navigate[-1] + " for N-Z")
|
|
|
|
|