public async Task MoveAsync(Direction direction) { var expectedPosition = direction.Move(_labirint.RobotPosition); if (_labirint.CanMoveTo(expectedPosition)) { _labirint = new Labirint( _labirint.Cells, expectedPosition ); } }
public FakeCellsProvider(string map) { _labirint = LabirintParser.Parse(map); }