🐛 Allow placements above 9 in y axis

This commit is contained in:
NikolajDanger
2021-04-06 15:11:56 +02:00
parent bce8fb1136
commit b24dca1be9

View File

@ -194,7 +194,7 @@ class HexGame():
if game == None: if game == None:
sendMessage = "There's no game in this channel" sendMessage = "There's no game in this channel"
self.bot.log("There was no game going on") self.bot.log("There was no game going on")
elif not (position[0].isalpha() and position[1].isnumeric() and len(position) == 2): elif not (position[0].isalpha() and position[1:].isnumeric() and len(position) in [2, 3]):
sendMessage = "The position must be a letter followed by a number." sendMessage = "The position must be a letter followed by a number."
self.bot.log(f"The position was not valid, {position}") self.bot.log(f"The position was not valid, {position}")
else: else: