Log In  

Cart #diruwopusa-0 | 2020-10-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

My first tweetcart! All the 1D 3-neighbour cellular automata in 194 characters :)

The 1D cellular automata are a simply family of rules that are applied a row at a time in the tweetcart - there are 2^2^3=256 possible rules, and some make very cool fractal non-repeating patterns ... I love that such complexity can emerge from such simple rules - hope you enjoy!

Wikipedia article of relevance

cls()w=flr(rnd()*256)c=7+w%8p=pget
?w,60,1,c-1
for t=5,128do for x=0,127do
l=p(x-1,t)>1and 4or 0u=p(x,t)>1and 2or 0r=p(x+1,t)>1and 1or 0if(band(w,shl(1,l+u+r))>0)pset(x,t+1,c)end
flip()end
run()
P#83465 2020-10-29 19:58

1

Cart #zehiponewi-0 | 2020-11-01 | Code ▽ | Embed ▽ | No License
1

IN THIS VERSION

  • Press X to skip to a new random automaton
  • Automata are coloured according to age (:

Hope you like!
(It doesn't fit in 280 chars any more, meh)

P#83592 2020-11-01 20:22

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-12-04 10:56:08 | 0.007s | Q:15