Фикс width <=> height в maze.py

This commit is contained in:
oSTEVEo 2026-05-16 19:19:51 +03:00
parent c7c181f30b
commit f3978396eb

View File

@ -9,8 +9,8 @@ class Maze:
def __init__(self, mazeArray: list[list[Cell]], start: dict, end: dict) -> None:
self.mazeArray = mazeArray
self.width = len(mazeArray)
self.height = len(mazeArray[0])
self.height = len(mazeArray)
self.width = len(mazeArray[0])
self.startCell = self.getCell(start['x'], start['y'])
self.endCell = self.getCell(end['x'], end['y'])