From 4c706e688c8a2c79814cfcb7cd75c83643168a8d Mon Sep 17 00:00:00 2001 From: diamondburned Date: Tue, 19 Mar 2024 17:12:41 -0700 Subject: [PATCH] Fix empty-spaces off-by-1 smiley face : ) --- problems/empty-spaces/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problems/empty-spaces/__main__.py b/problems/empty-spaces/__main__.py index d42edf9..fbd6984 100644 --- a/problems/empty-spaces/__main__.py +++ b/problems/empty-spaces/__main__.py @@ -98,8 +98,8 @@ def part1_answer(self): # Return the number of spots in the grid where we can fit a 15x15 square def part2_answer(self): ans = 0 - for i in range(self.consts["GRID_SIZE"][0] - 15): - for j in range(self.consts["GRID_SIZE"][1] - 15): + for i in range(self.consts["GRID_SIZE"][0] - 14): + for j in range(self.consts["GRID_SIZE"][1] - 14): valid = True for x in range(15): for y in range(15):