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