aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/battleship.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-01-23 23:46:14 -0800
committerGravatar GitHub <[email protected]>2021-01-23 23:46:14 -0800
commit544bb787faf9bdeecfaf4381a6387916c5ddee70 (patch)
tree2f82e5491043a3176741ca69b30b3a132bdf6d0c /bot/exts/evergreen/battleship.py
parentMerge branch 'master' into master (diff)
parentUpdate the README badges (diff)
Merge branch 'master' into master
Diffstat (limited to 'bot/exts/evergreen/battleship.py')
-rw-r--r--bot/exts/evergreen/battleship.py2
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