Rename grids to grid_mappings
This commit is contained in:
parent
27e210ec0d
commit
fa82fee9fd
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue