Log In  


ant
by Nedim
Cart #ant-2 | 2024-09-30 | Embed ▽ | License: CC4-BY-NC-SA
2

Ant algorithm

UPDATE: You can now hold down [Left mouse button] to spawn ants at the cursor location

Rules:
-if pixel is black: move forward, then turn right
-if pixel is white: move forward, then turn left
-always swap color of current pixel

2



[Please log in to post a comment]