Ejemplo n.º 1
0
        public async Task MoveAsync(Direction direction)
        {
            var expectedPosition = direction.Move(_labirint.RobotPosition);

            if (_labirint.CanMoveTo(expectedPosition))
            {
                _labirint = new Labirint(
                    _labirint.Cells,
                    expectedPosition
                    );
            }
        }
Ejemplo n.º 2
0
 public FakeCellsProvider(string map)
 {
     _labirint = LabirintParser.Parse(map);
 }