forked from UNN/2026-rff_mp
Фикс width <=> height в maze.py
This commit is contained in:
parent
c7c181f30b
commit
f3978396eb
|
|
@ -9,8 +9,8 @@ class Maze:
|
||||||
|
|
||||||
def __init__(self, mazeArray: list[list[Cell]], start: dict, end: dict) -> None:
|
def __init__(self, mazeArray: list[list[Cell]], start: dict, end: dict) -> None:
|
||||||
self.mazeArray = mazeArray
|
self.mazeArray = mazeArray
|
||||||
self.width = len(mazeArray)
|
self.height = len(mazeArray)
|
||||||
self.height = len(mazeArray[0])
|
self.width = len(mazeArray[0])
|
||||||
|
|
||||||
self.startCell = self.getCell(start['x'], start['y'])
|
self.startCell = self.getCell(start['x'], start['y'])
|
||||||
self.endCell = self.getCell(end['x'], end['y'])
|
self.endCell = self.getCell(end['x'], end['y'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user