From b24dca1be94433ee5aed34e9e1f348819982d18a Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Tue, 6 Apr 2021 15:11:56 +0200 Subject: [PATCH] :bug: Allow placements above 9 in y axis --- funcs/games/hex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/games/hex.py b/funcs/games/hex.py index 7cc5274..6711670 100644 --- a/funcs/games/hex.py +++ b/funcs/games/hex.py @@ -194,7 +194,7 @@ class HexGame(): if game == None: sendMessage = "There's no game in this channel" 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." self.bot.log(f"The position was not valid, {position}") else: