private static void ConnectCells(Cell cell1, Cell cell2, Direction d) { cell1.RemoveWall(d); cell2.RemoveWall(d.Invert()); }
public Path(Maze maze, Cell start) { _maze = maze; Add(new Direction(), start); //direction doesnt matter if _cells is empty Index = _counter++; }