Problems with rule tables

Has something gone haywire? Let us know about it!
Post Reply
User avatar
toroidalet
Posts: 1514
Joined: August 7th, 2016, 1:48 pm
Location: My computer
Contact:

Problems with rule tables

Post by toroidalet » September 10th, 2016, 1:12 pm

This is a general thread for reporting problems with rule tables. This may belong in other cellular automata, but I don't know. What is wrong with this rule?

Code: Select all

@RULE Repklife
@TABLE
n_states: 5
neighborhood:Moore
symmetries:none
var a={0,1,2,3,4}
var b=a
var c=a
var d=a
var e=a
var f=a
var g=a
var h=a
var i=a
var aa={0,3}
var ab=aa
var ac=aa
var ad=aa
var ae=aa
var af=aa
var ag=aa
var ah=aa
var ba={0,4}
var bb=ba
var bc=ba
var bd=ba
var be=ba
var bf=ba
var bg=ba
var bh=ba
1,1,1,0,0,0,0,0,0,2
1,1,0,1,0,0,0,0,0,2
1,1,0,0,1,0,0,0,0,2
1,1,0,0,0,1,0,0,0,2
1,1,0,0,0,0,1,0,0,2
1,1,0,0,0,0,0,1,0,2
1,1,0,0,0,0,0,0,1,2
1,0,1,1,0,0,0,0,0,2
1,0,1,0,1,0,0,0,0,2
1,0,1,0,0,1,0,0,0,2
1,0,1,0,0,0,1,0,0,2
1,0,1,0,0,0,0,1,0,2
1,0,1,0,0,0,0,0,1,2
1,0,0,1,1,0,0,0,0,2
1,0,0,1,0,1,0,0,0,2
1,0,0,1,0,0,1,0,0,2
1,0,0,1,0,0,0,1,0,2
1,0,0,1,0,0,0,0,1,2
1,0,0,0,1,1,0,0,0,2
1,0,0,0,1,0,1,0,0,2
1,0,0,0,1,0,0,1,0,2
1,0,0,0,1,0,0,0,1,2
1,0,0,0,0,1,1,0,0,2
1,0,0,0,0,1,0,1,0,2
1,0,0,0,0,1,0,0,1,2
1,0,0,0,0,0,1,1,0,2
1,0,0,0,0,0,1,0,1,2
1,0,0,0,0,0,0,1,1,2
aa,ab,ac,ad,ae,af,ag,3,ah,4
ba,bb,bc,bd,be,bf,bg,bh,4,3
2,a,b,c,d,e,f,g,h,1
aa,ab,ac,3,ad,ae,af,ag,ah,1
a,b,c,d,e,f,g,h,i,0
It is supposed to facilitate building patterns that could be generated by a repeat script, by generating them in real time. What is wrong?
EDIT: How am I so stupid? I used a variable that wasn't listed! :oops: The correct rule is now shown above.
EDIT2:State 1 and 2 cells don't emulate life. I give up.
Any sufficiently advanced software is indistinguishable from malice.

Post Reply