Maze Solving in mBlock


#1

Hello, I am teaching a small project at the end of the school year. The students have to present four small programs for the mBot.

Right now, I am stuck with the maze solving. Has any one of you a simple example for a maze solving program without creating new variables?

Any help would be nice.

Greetings


#2

hum… yeah if you don’t want any variable, you can just do :
(that’s not real programming down there)
while infinite do
turn (witouth going forward at the same time) on the right (90° or -90° i don’t remenber)
while there is black_line then
| turn left 90°
go forward (one square steps so maybe 50 steps? idk)

i think it works, but it can take a very long time :confused: