diff options
author | 2021-01-24 07:22:38 -0800 | |
---|---|---|
committer | 2021-01-24 07:22:38 -0800 | |
commit | 12f283f1e65e4c7241e149f525cb57b9245ca716 (patch) | |
tree | d2ac274130d6b2ee45753c7218deed37bf089515 /bot/exts/evergreen/battleship.py | |
parent | Fix lint issues (diff) | |
parent | Merge pull request #397 from ks129/tic-tac-toe (diff) |
Merge branch 'master' into feature/connect_four
Diffstat (limited to 'bot/exts/evergreen/battleship.py')
-rw-r--r-- | bot/exts/evergreen/battleship.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/battleship.py b/bot/exts/evergreen/battleship.py index 9bc374e6..fa3fb35c 100644 --- a/bot/exts/evergreen/battleship.py +++ b/bot/exts/evergreen/battleship.py @@ -140,7 +140,7 @@ class Game: @staticmethod def get_square(grid: Grid, square: str) -> Square: """Grabs a square from a grid with an inputted key.""" - index = ord(square[0]) - ord("A") + index = ord(square[0].upper()) - ord("A") number = int(square[1:]) return grid[number-1][index] # -1 since lists are indexed from 0 |