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