
aMAZEingly good fun *** At first it didn't work in 3.0 *** But it does now (original Scratch Bugs fixed), however "aMAZEingly good fun (3.0)" is better than this, as it has a few extra built-in mazes & a new Undo (Z-Key) feature that makes [Make]ing mazes much easier: https://scratch.mit.edu/projects/285499378/ Hit Space-Key to Start (Green Flag works too, but it resets the List of Best results for each of the 10 original stored mazes, all of which were created with this project in [Make] mode, to my Best results. [Make] - Follows Arrow Keys to create a Maze on a blank background. First (and only) time outside a stage edge boundary marks the end point, then [Made] - can be clicked when you've completed it, then [Play] - is clicked to start playing using the Arrow Keys. [Load] - pick a random maze to play from those stored. [Pick] - lets you scroll through the stored mazes, using [Next] - then you [Pick] the one you want to [Play]. [Reset] - sets the maze being played back to the start. You can draw and traverse mazes in 3 different Sizes: 3 - Simple (track & internal walls are 3 times the size) 2 - Moderate (track & internal walls are twice the size) 1 - Complex (track & walls are as small as practical) The format of the backdrop names of the stored mazes is stageSnn (where S is its Size, nn is a 1 or 2 digit #). The backdrops were created by first using [Make] to create a maze, then hiding the ball Sprite before saving the stage as a picture (named using the above format), then uploading that picture as a backdrop from a file, and finally covering the displayed variables and action buttons with a white rectangle. If you want to upload your own additional mazes to my original set of 10, apart from the above, you'll need to edit the code in the "List Saved Mazes" custom block to "add stageSnn to mazes". And then you'll need to click the Green Flag to reload the List variables "mazes" and "least moves" (which will be reset to zero). I am not very good at designing mazes, so they aren't great mazes, and almost all of them have multiple solutions, so the aim is to find the best solution, but I had heaps of fun writing the code, and even more fun [Make]ing and [Play]ing the mazes I created. I hope you have fun with it too. For the record my best scores (maybe you can do better) for the 10 original mazes are: 10-151, 11-182, 12-215, 13-169, 130-198, 20-70, 21-82, 22-67, 30-54 & 31-59. Regards Greg PS Note: The inbuilt track tracing which is very effective for stored mazes, is somewhat ineffective after [Reset] has been clicked on a just [Made] maze. This is because "clear" is used to remove all trace tracking, but it cannot be used (and is not) on a just [Made] unsaved maze, because "clear" wipes out everything drawn by the Pen, and in a just [Made] maze this would wipe out the maze you had gone to all that trouble to [Make].
Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. This will be used to teach kids how save a stage created by a Project in progress, and subsequently upload it (and perhaps modify it a little) as a new backdrop for their Project, or in this case as a new stored maze. I may also remove most, if not all of the code for [Reset] and get them to write it.