Skip to main content
10 votes

Cellular Automata Rule 30

Google Sheets, 171 bytes ...
z..'s user avatar
  • 751
7 votes

Cellular Automata Rule 30

Python, 100 byes l='.'*32 l+='O'+l exec("print(l);l=''.join('.O'[f'.{l}.'[i:i+3]in'OO..O.']for i in range(65));"*33)
boothby's user avatar
  • 9,856
5 votes

Cellular Automata Rule 30

Jelly,  22  21 bytes 32ṬŒḄØ0jḢ⁻ṀƊ3ƤƊƬḣị⁾O. A niladic Link that yields a list of lines. Try it online! How? ...
Jonathan Allan's user avatar
4 votes

Cellular Automata Rule 30

K (ngn/k), 36 34 bytes -2 bytes thanks to @Jonathan Allan's bit table ".O"@31{~{x=y|z}.+3':0,x,0}\31=!63 Try it online! ...
akamayu's user avatar
  • 561
3 votes

Cellular Automata Rule 30

Python 3,  88  87 bytes -1 thanks to Jitse! (Reverse the order, strip leading character at each step to avoid some slice offsets.) I started with boothby,'s answer and tweaked quite a bit... ...
Jonathan Allan's user avatar
3 votes

A cube of text឵

Vyxal, 13 bytes L?∞Ṫ»∨¹0²H»ø∧ Try it Online! Indirectly -1 byte thanks to Kevin Cruijssen, I forgot how canvas operator overloading works. ...
emanresu A's user avatar
  • 38.8k
2 votes

Cellular Automata Rule 30

sed, 110 bytes :0 p /^O/b y/.O/_x/ s/.*/_&_/ :1 s/[_x]/&:/ /:__/s/:/_:/ //!s/:/x:/ s/(.)\1:/./ s/..:/O/ /[_x]../b1 s/..$// b0 Try it online!
Jan Blumschein's user avatar
2 votes

Cellular Automata Rule 30

05AB1E, 29 25 bytes 31°ÂûsvJDT„O.‡,0.øü3εćsàÊ -4 bytes porting @JonathanAllan's Jelly answer. Try it online. Explanation: ...
Kevin Cruijssen's user avatar
2 votes

A cube of text឵

05AB1E, 35 12 bytes gIû¨•5ÏlÐθ•Λ -23 bytes by porting emanresuA's Vyxal answer, so make sure to upvote that answer as well! Try it online. Original 35 bytes answer:...
Kevin Cruijssen's user avatar
2 votes

Character Cross

Nibbles, 28 nibbles (14 bytes) .;!;,,@\@[.!__,:?==__=@;;@~~ Attempt This Online! Explanation This was... an odyssey. Explanation uses named variables instead of de ...
DLosc's user avatar
  • 39.7k
2 votes

Perform gravity sort

Vyxal, 15 bytes ×*§≬‛* ḂV↔↵R‹∑§ Try it Online! ...
emanresu A's user avatar
  • 38.8k
2 votes

Cellular Automata Rule 30

APL+WIN, 120 bytes m←32 63⍴0 m[0;62]←1 :for i :in 1+⍳31 n←m[i-1;] :for j :in ⍳63 m[i;j]←(↑v)≠(↑1↓v)∨¯1↑v←3↑n n←1↓n :end :end '.o'[(⌽⍳32)⌽m] Try it online! Thanks ...
Graham's user avatar
  • 6,286
2 votes

Cellular Automata Rule 30

JavaScript (ES11), 84 bytes ...
Arnauld's user avatar
  • 193k
2 votes

Cellular Automata Rule 30

Retina 0.8.2, 100 69 bytes 2080$*. M!`.{65} 33=`. 0 +s`.(?<=(0\.\.|\.0.|\..0).{65}) 0 .(.+). $1 Try it online! Explanation: ...
Neil's user avatar
  • 172k
1 vote

Cellular Automata Rule 30

Wolfram Language (Mathematica), 71 bytes StringRiffle[CellularAutomaton[30,{{1},0},31]/.{1->"1",0->"."},"\n",""] Try ...
Greg Martin's user avatar
  • 15.8k
1 vote

Cellular Automata Rule 30

Perl 5, 105 bytes @a=(0)x63;$a[31]=1;for$z(1..32){say map$_?O:".",@a;@a=map{($b=join'',@a[$_-1..$_+1])<101&&$b>0||0}0..$#a} Try it online!
Xcali's user avatar
  • 15.3k
1 vote

Cellular Automata Rule 30

Charcoal, 32 bytes UB.׳¹ψ0F³¹«⸿F⁶³℅↔⁻℅§KM⁰℅⌈✂KM¹¦³ Try it online! Link is to verbose version of code. Explanation: UB. Set ...
Neil's user avatar
  • 172k
1 vote

Construct a word ladder

Vyxal, 11 bytes ∑24f?@ḣ›Jø∧ Try it Online! ...
emanresu A's user avatar
  • 38.8k
1 vote

Perform gravity sort

Pip -l, 31 bytes YZJ P',XgWkNyJ P9X#yPZJ YyRk;Rk Uses , for the asterisk character and <...
DLosc's user avatar
  • 39.7k
1 vote

Grid ASCII art code golf

Uiua, 13 bytes ⇌⍜⊡◌:↯5_5@0-1 Try it online!
noodle person's user avatar
1 vote

A cube of text឵

Ruby, 114 bytes ->s{t="#{" "*w=2*v=s.size} "*u=w-1 v.times{|i|9.times{|j|t[[u*v,~v,u][j/3]-[1,~w,w][j%3]*~(j%-4/3*2)*i]=s[~i]}} t} Try it ...
Level River St's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible