From bff486ca7f7bcc119e41baecdcaea9d44fcc532e Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Thu, 13 Aug 2020 17:29:44 +0200 Subject: [PATCH] :bug: --- funcs/games/hex.py | 4 +--- funcs/games/hexDraw.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/funcs/games/hex.py b/funcs/games/hex.py index 1975a4d..74a76d1 100644 --- a/funcs/games/hex.py +++ b/funcs/games/hex.py @@ -169,7 +169,7 @@ class HexGame(): if game["players"][winner-1] != "Gwendolyn": winAmount = game["difficulty"]*10 message += " Adding "+str(winAmount)+" GwendoBucks to their account." - + self.bot.database["hex games"].update_one({"_id":channel}, {"$push":{"gameHistory":(int(position[1])-1, ord(position[0])-97)}}) @@ -197,7 +197,6 @@ class HexGame(): else: return "There's no game in this channel", False, False, False, False - # Returns a board where the placement has occured def placeOnHexBoard(self, board,player,position): # Translates the position @@ -220,7 +219,6 @@ class HexGame(): logThis("Cannot place on existing piece (error code 1532)") return "Error. You must place on an empty space." - # After your move, you have the option to undo get your turn back #TimeTravel def undoHex(self, channel, user): game = self.bot.database["hex games"].find_one({"_id":channel}) diff --git a/funcs/games/hexDraw.py b/funcs/games/hexDraw.py index b024254..0966102 100644 --- a/funcs/games/hexDraw.py +++ b/funcs/games/hexDraw.py @@ -179,7 +179,7 @@ class DrawHex(): (x+SMOL_WIDTH/2, y+SMOL_SIDELENGTH*3/2), (x, y+SMOL_SIDELENGTH), ],fill = PIECECOLOR[p % 2 + 1]) - + # Save im.save(FILEPATH) except: