Beispiel #1
0
        public async Task MoveAsync(Direction direction)
        {
            var expectedPosition = direction.Move(_labirint.RobotPosition);

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