This commit is contained in:
NikolajDanger
2020-08-13 17:29:44 +02:00
parent 4f30c6a196
commit bff486ca7f
2 changed files with 2 additions and 4 deletions

View File

@ -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})

View File

@ -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: