The Turtle draws an Octagon Grid via a Random Path. Idea and rules for valid turns to draw path by me. * Run at normal speed. The path is random, so you can use Turbo Mode to finish drawing the grid quickly. The turtle repeatedly draws a line then makes a valid turn randomly. The selection of valid turns depend on the direction that the turtle is currently moving. If the turtle is moving diagonally, it may randomly turn 45 or -45 degrees. If the turtle is moving vertically or horizontally it may randomly turn 45 degrees in the current turn direction, or turn 90 degrees in the opposite direction. If a line goes off the screen, the turtle reverses direction and retraces the line (and also reverses the turn direction).
An unusual but interesting method to draw an octagon grid with Pen. Idea and algorithm by me. Two fancier projects of this type: https://scratch.mit.edu/projects/730692074/ https://scratch.mit.edu/projects/730821303/ A Turtle Graphics project. Huge thanks to @PinkyPepper for the Turtle picture: https://scratch.mit.edu/projects/86634161/