better navigate?
This commit is contained in:
parent
619b62336f
commit
86985476e2
@ -8,6 +8,8 @@ from redbot.core import Config, checks
|
|||||||
|
|
||||||
class Hangman:
|
class Hangman:
|
||||||
"""Lets anyone play a game of hangman with custom phrases"""
|
"""Lets anyone play a game of hangman with custom phrases"""
|
||||||
|
navigate = "🔼🔽"
|
||||||
|
letters = "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿"
|
||||||
|
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
@ -23,9 +25,6 @@ class Hangman:
|
|||||||
self.answer_path = "hangman/data/hanganswers.txt"
|
self.answer_path = "hangman/data/hanganswers.txt"
|
||||||
self.winbool = defaultdict(lambda: False)
|
self.winbool = defaultdict(lambda: False)
|
||||||
|
|
||||||
self.letters = "🇦🇧🇨🇩🇪🇫🇬🇭🇮🇯🇰🇱🇲🇳🇴🇵🇶🇷🇸🇹🇺🇻🇼🇽🇾🇿"
|
|
||||||
self.navigate = "🔼🔽"
|
|
||||||
|
|
||||||
self.hanglist = {}
|
self.hanglist = {}
|
||||||
|
|
||||||
async def _update_hanglist(self):
|
async def _update_hanglist(self):
|
||||||
@ -290,10 +289,10 @@ class Hangman:
|
|||||||
|
|
||||||
async def _printgame(self, channel):
|
async def _printgame(self, channel):
|
||||||
"""Print the current state of game"""
|
"""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"
|
+ "Used Letters: " + str(self._guesslist(channel.guild)) + "\n"
|
||||||
+ self.hanglist[self.the_data[channel.guild]["hangman"]] + "\n"
|
+ self.hanglist[self.the_data[channel.guild]["hangman"]] + "\n"
|
||||||
+ self.navigate[0] + " for A-M, " + self.navigate[-1] + " for N-Z")
|
+ self.navigate[0] + " for A-M, " + self.navigate[-1] + " for N-Z")
|
||||||
|
|
||||||
message = await channel.send(c_say)
|
message = await channel.send(c_say)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user