From fa82fee9fd11923b48ffa226fb5cedfb415d6e79 Mon Sep 17 00:00:00 2001 From: flying-scorpio Date: Mon, 2 Dec 2019 10:54:02 +0100 Subject: [PATCH] Rename grids to grid_mappings --- square.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/square.py b/square.py index ccf4ef6..6439492 100644 --- a/square.py +++ b/square.py @@ -25,7 +25,7 @@ class Square: 6 7 8 """ - grids = [ + grid_mappings = [ (0, 0), # grid 0 (0, 1), # grid 1 (0, 2), # grid 2 @@ -40,7 +40,7 @@ class Square: grid_coordinates = (self.line // 3, self.column // 3) grid_number = 0 - while grids[grid_number] != grid_coordinates: + while grid_mappings[grid_number] != grid_coordinates: grid_number += 1 if grid_number == 9: