Report as inappropriate.
This szenario shows the difference between three maze-solving-algorithms (https://en.wikipedia.org/wiki/Maze_solving_algorithm): the red and the green robot use the wall-follower-algorithm (left-hand-rule and right-hand-rule) and the blue robot uses the Pledge-Algorithm (a kind of modified left-hand-rule).
The szenario first creates a simply connected maze without "islands" in the size according to the chosen settings that can always be solved by each of the three robots although they will probably choose different paths.
The user can also choose to remove some of the walls to create a (probably) disjoint maze. Depending on the startposition and the layout of the maze the red and green robot will not be able to solve it whereas the blue one still always solves the maze.
After creating the maze Greenfoot will stop to give you the possibility to orient yourself before the robots will start running around... You will have to press te Greenfoot-Run-Button again, then the robots will start moving and will try to solve the maze.
(The language in the settings is German, as beside the greenfoot-webside this program will be mostly used by Germans.)
The settings were prorammed by using the UILibrary witten by mik, thanks! (http://www.greenfoot.org/scenarios/1930)
5837 views / 673 in the last 7 days
1 vote | 0 in the last 7 days
Want to leave a comment? You must first log in.