Rename grids to grid_mappings

This commit is contained in:
flying-scorpio 2019-12-02 10:54:02 +01:00
parent 27e210ec0d
commit fa82fee9fd

View file

@ -25,7 +25,7 @@ class Square:
6 7 8 6 7 8
""" """
grids = [ grid_mappings = [
(0, 0), # grid 0 (0, 0), # grid 0
(0, 1), # grid 1 (0, 1), # grid 1
(0, 2), # grid 2 (0, 2), # grid 2
@ -40,7 +40,7 @@ class Square:
grid_coordinates = (self.line // 3, self.column // 3) grid_coordinates = (self.line // 3, self.column // 3)
grid_number = 0 grid_number = 0
while grids[grid_number] != grid_coordinates: while grid_mappings[grid_number] != grid_coordinates:
grid_number += 1 grid_number += 1
if grid_number == 9: if grid_number == 9: