Live data from Hacker News

Hexagonal Langton's Ant 2 – Colors, Gliders and Highways

brtmr.de

11–14 of 14 posts

Re: Hexagonal Langton's Ant 2 – Colors, Gliders and Highways

#11

My versions of the same fwiw: - https://jcorbin.github.com/hexant -- the hexagonal one I'm working on now - https://jcorbin.github.io/ants -- the square grid one I made several years ago

Nice! I like how the world grows with the movement of the ant, as opposed to my rather boring static one

Re: Hexagonal Langton's Ant 2 – Colors, Gliders and Highways

#12

My versions of the same fwiw: - https://jcorbin.github.com/hexant -- the hexagonal one I'm working on now - https://jcorbin.github.io/ants -- the square grid one I made several years ago

e.g., here's a neat one: http://jcorbin.github.io/hexant/#colors=light%28360%2C%20100...

woa. that looks awesome ;) what am i looking at - whats the rule? and are you also coloring the spaces the ant has already been on, but that reverted to their original state?

Re: Hexagonal Langton's Ant 2 – Colors, Gliders and Highways

#13
post #12

Earlier quoted context omitted.

e.g., here's a neat one: http://jcorbin.github.io/hexant/#colors=light%28360%2C%20100...

woa. that looks awesome ;) what am i looking at - whats the rule? and are you also coloring the spaces the ant has already been on, but that reverted to their original state?

It's not the most obvious UX but hit "/" to open the rules dialog, this rule set is "ant(2L 64F 2S)". Click through to the project page and check out the README for more info on the key binds: https://github.com/jcorbin/hexant.

The coloring trick is a recent addition I call "redraw tracing"; essentially there are two color palettes: one for "cold cells" and "hot cells" (ones that haven't/have been visited "recently").

What makes it "redraw" tracing is that "recent" is simply defined as "since last full redraw". Full redraws are triggered when the ant hits an edge of the screen.

I plan to expand the tracing to support "last-N" tracing where "recent" would mean something more comprehensible like "in the last 1024 iterations" f.e.

Post reply on HN