Left/Right arrows to choose turmite
Up/Down arrows to change speed.
"Z" to generate random turmite (multicolor only for now)
Thought I'd seen this earlier.
It's an unusual mathematical method - what's really odd is after he doodles for a-while, eventually he gets it in his head to take straight off up and right diagonally.
I hadn't studied the effect, but I'm pretty sure bolting out of there has got to be a mistake in the program or calculations, right ?
1) the mentioned program is my first pico-8 program, this one is the second :)
2) Langton's ant is a particular case of turmite, in this program you can choose from 43 different turmites, Langton's ant is #1
3) behavior you described is valid - https://en.wikipedia.org/wiki/Langton%27s_ant
Gromozeka, how about this one which doesn't bolt out ? I'm curious to see the screen fill with this, without the "running away" behavior.
Trying ... Wow ! Got it. This is really curious. I wonder if random numbers are generated this way as you are only following a path and modifying the path based on what was plotted.
An interesting mathematical excursion, thanks, Gromozeka !
This is now one of my favorite carts. :D
Gromozeka, could you update to show what directions are being made when you change the turmite number ? If you like, I can make some tiles for you. Just display them at the top.
You can copy and paste that directly in your tile area.
Display with: SPR(n,x,y)
Or if you want larger:
Display with: SSPR() (see PICO-8 help for args)
Also maybe have an option for scale, so you can see an enlarged grid, also option for move one step at a time with keystroke so player can watch each individual move.
There are two extensions to Langton's ant that I implemented.
Here you can find description of multiple-colors one-state extension format (L and R) - https://en.wikipedia.org/wiki/Langton%27s_ant#Extension_to_multiple_colors
Here description of two-colors multiple-states extension format - https://en.wikipedia.org/wiki/Langton%27s_ant#/media/File:Turmite-121181121020-65932.png
[Please log in to post a comment]