From 9fb4cc11f233c689b86ceb7b70667e689714082f Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Mon, 8 Feb 2021 20:22:22 +0100 Subject: [PATCH] Resize hard grid to prevent api limitations Fixes #17 --- cogs/minesweeper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/minesweeper.py b/cogs/minesweeper.py index bb80b0a..d6e949e 100644 --- a/cogs/minesweeper.py +++ b/cogs/minesweeper.py @@ -30,7 +30,7 @@ class Minesweeper(commands.Cog): dimensions = { "e": [5, 5, 4], "m": [10, 10, 20], - "h": [13, 13, 35] + "h": [13, 8, 35] } numbers = { @@ -68,6 +68,7 @@ class Minesweeper(commands.Cog): # Join the grid into a string li = [" ".join(row) for row in grid] + print("\n".join(li)) return "\n".join(li) # Counts the amount of bombs near a given cell