Click the green flag and watch.
This is an advanced version of my earlier project: https://scratch.mit.edu/projects/515698903/ In this version, the ant is shown up close at first, but as it gets closer to the edges, the camera zooms out a bit. To be able to keep track of the tiles, this version uses a list instead of simply stamping and checking the color of the current tile. The red ant follows two simple rules: ● If standing on a white tile, make it black, turn 90° clockwise, and move forward one tile. ● If standing on a black tile, make it white, turn 90° counter-clockwise, and move forward one tile. The rules are very simple, but the pattern that emerges when the ant follows these rules is not. Thanks to @Smol_Crewm8 for telling me about Langton's ant. Learn more about Langton's ant here: https://en.wikipedia.org/wiki/Langton%27s_ant All code and art by me, except for the magnifier lens, which I borrowed from @Layzej's awesome project Magnifier Effect - 100% Pen Rendered: https://scratch.mit.edu/projects/93561931/