Exemplo n.º 1
0
 private bool CanMoveLeft(Cell currentCell)
 {
     return (currentCell.X - 1 < 0 || Labirynth[currentCell.X - 1, currentCell.Y] == '0');
 }
Exemplo n.º 2
0
 private bool CanMoveRight(Cell currentCell)
 {
     return (currentCell.X + 1 < this.Labirynth.GetLength(0) || Labirynth[currentCell.X - 1, currentCell.Y] == '0');
 }
Exemplo n.º 3
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')
            {

            }
        }