Ejemplo 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));
 }
Ejemplo n.º 2
0
 private bool EnableThetaWalls(ThetaMaze maze, int amountCellsInPreviousLayers, int currentCellInLayer, int previousCellInLayer)
 {
     return(maze.ThereIsWall(amountCellsInPreviousLayers + currentCellInLayer,
                             amountCellsInPreviousLayers + previousCellInLayer));
 }