From 3fb2da1c0e5183304a049fe2a7c5e4ba4112c700 Mon Sep 17 00:00:00 2001 From: jona605a Date: Thu, 3 Sep 2020 16:10:00 +0200 Subject: [PATCH] :bug: --- funcs/games/hex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funcs/games/hex.py b/funcs/games/hex.py index 74a76d1..dbdf5e5 100644 --- a/funcs/games/hex.py +++ b/funcs/games/hex.py @@ -231,8 +231,9 @@ class HexGame(): logThis("Undoing {}'s last move".format(self.bot.funcs.getName(user))) lastMove = game["gameHistory"].pop() + game["board"][lastMove[0]][lastMove[1]] = 0 self.bot.database["hex games"].update_one({"_id":channel}, - {"$set":{"board."+lastMove[0]+"."+lastMove[1]:0}}) + {"$set":{"board":game["board"]}}) self.bot.database["hex games"].update_one({"_id":channel}, {"$set":{"turn":turn%2 + 1}})