This AI can move from left to right trying to dodge the walls. It is not a code that only works with a specific maze, it is a 100% AI that detects collisions. Try it yourself, click on 'see inside' and follow the steps in the comment. For now this AI has a lot of bugs, but I will try to fix them.
I have created this project especially for the Scratch Design Studio 'Power up!' 3.0 (07/07/2026): Now AI can't pass through walls. Added 2 new mazes. 2.0 (02/07/2026): Changed AI code. Added 1 maze.