🐛 Allow placements above 9 in y axis
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user