Esempio n. 1
0
 private bool EnableThetaWalls(ThetaMaze maze, int currentLayer, int amountCellsInPreviousLayers, int currentCellInLayer, int amountCellsInCurrentLayer, int neighbourArc, int amountNeighbours)
 {
     if ((maze.AmountCells == amountCellsInPreviousLayers + amountCellsInCurrentLayer))
     {
         return(true);
     }
     return(maze.ThereIsWall(amountCellsInPreviousLayers + currentCellInLayer,
                             amountCellsInPreviousLayers + amountCellsInCurrentLayer + neighbourArc +
                             amountNeighbours));
 }
Esempio n. 2
0
 private bool EnableThetaWalls(ThetaMaze maze, int amountCellsInPreviousLayers, int currentCellInLayer, int previousCellInLayer)
 {
     return(maze.ThereIsWall(amountCellsInPreviousLayers + currentCellInLayer,
                             amountCellsInPreviousLayers + previousCellInLayer));
 }