/
GeoExe
/
Maze_Robot
Обзор
Документация
Войти
/
GeoExe
/
Maze_Robot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Mazes/EmptyMazeTask.cs
21 строка
578 B
GeoExe
Files with tasks uploaded
14 окт 2025, 21:18
14 окт 2025, 21:18
0a1ac52
Код
Авторство
О чём код?
namespace Mazes; public static class EmptyMazeTask { public static void MoveOut(Robot robot, int width, int height) { MoveRight(robot, width - 3); MoveDown(robot, height - 3); } private static void MoveRight(Robot robot, int steps) { for (var stepRight = 0; stepRight < steps; stepRight++) robot.MoveTo(Direction.Right); } private static void MoveDown(Robot robot, int steps) { for (var stepDown = 0; stepDown < steps; stepDown++) robot.MoveTo(Direction.Down); } }