From 86985476e2d6c697fdc851907918b190d841e4d9 Mon Sep 17 00:00:00 2001 From: Bobloy Date: Thu, 3 May 2018 16:35:15 -0400 Subject: [PATCH] better navigate? --- hangman/hangman.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hangman/hangman.py b/hangman/hangman.py index 3e25c22..8a6e0aa 100644 --- a/hangman/hangman.py +++ b/hangman/hangman.py @@ -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,10 +289,10 @@ class Hangman: async def _printgame(self, channel): """Print the current state of game""" - 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") + 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") message = await channel.send(c_say)