Log In  

Cart #30638 | 2016-10-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Left/Right arrows to choose turmite
Up/Down arrows to change speed.
"Z" to generate random turmite (multicolor only for now)

P#30523 2016-10-10 05:25 ( Edited 2016-10-11 17:57)

:: dw817

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 ?

P#30530 2016-10-10 10:24 ( Edited 2016-10-10 14:27)

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

P#30532 2016-10-10 10:30 ( Edited 2016-10-10 14:30)

This is kind of cool - do you have recommended reading on just the turmite? I am still not sure what I am seeing.

Could you add color as a 3rd dimension? Does that apply? I don't even know ... :)

P#30539 2016-10-10 11:22 ( Edited 2016-10-10 15:22)
P#30541 2016-10-10 11:28 ( Edited 2016-10-10 15:28)
:: dw817

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.


P#30544 2016-10-10 11:37 ( Edited 2016-10-10 15:37)

1) look at #32 and #33
2) I'll write color version too.

P#30548 2016-10-10 11:44 ( Edited 2016-10-10 15:48)
:: dw817

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

P#30553 2016-10-10 12:20 ( Edited 2016-10-10 16:20)
:: dw817

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.

P#30606 2016-10-10 22:49 ( Edited 2016-10-11 03:03)

Thank you. I'll look at it later. Added support for multicolor turmites so far.

P#30630 2016-10-11 02:55 ( Edited 2016-10-11 06:55)

another update. now you can generate random multicolor turmites by pressing "Z".

P#30639 2016-10-11 08:05 ( Edited 2016-10-11 12:05)
:: dw817

Gromo, wouldn't it make more mathematical sense to just increase the color beneath the cursor by 1 until it flips over ?

That would be more interesting than a purely random color flipped to black and forth.

P#30640 2016-10-11 10:12 ( Edited 2016-10-11 14:12)

That's exactly what I'm doing. I'm not using random at all.
Look at #2,#3,#6 for example, you'll see that color patterns are not random.

P#30643 2016-10-11 10:22 ( Edited 2016-10-11 14:22)
:: dw817

Okay, it just looked like it for the initial ones. I'm a little unclear as to what the digits below represent ? If they are turning directions and moving ahead and stopping, could you please list what each digit represents ?

P#30664 2016-10-11 12:17 ( Edited 2016-10-11 16:17)

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

P#30670 2016-10-11 13:57 ( Edited 2016-10-11 17:57)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-08-09 08:54 | 0.026s | 2097k | Q:54