private bool CanMoveLeft(Cell currentCell) { return (currentCell.X - 1 < 0 || Labirynth[currentCell.X - 1, currentCell.Y] == '0'); }
private bool CanMoveRight(Cell currentCell) { return (currentCell.X + 1 < this.Labirynth.GetLength(0) || Labirynth[currentCell.X - 1, currentCell.Y] == '0'); }
public void TraverseLabyrinth(ICollection<Cell> visitedCells, Cell currentCell) { // Movement Priority => Left, Top, Right, Bottom if(currentCell.X -1 < 0 || Labirynth[currentCell.X-1,currentCell.Y] == '0') { } }