### Counter

Posted:

**October 28th, 2018, 2:54 am**Code: Select all

```
@RULE Counter
@TABLE
n_states:6
neighborhood:vonNeumann
symmetries:none
#State 0: Zero
#State 1: One
#State 2: Counting
#State 3: Return in Zero
#State 4: Return in One
#State 5: Start
var a={0,1,2,3,4,5}
var b={0,1,2,3,4,5}
var c={0,1,2,3,4,5}
var d={0,1,2,3,4,5}
var e={3,4}
#Count One
2,1,a,b,c,0
1,a,b,2,c,2
#Count Zero
2,0,a,b,c,3
0,a,b,2,c,1
#Returning
3,a,b,5,c,2
3,a,b,c,d,0
4,a,b,c,d,1
0,e,a,b,c,3
1,e,a,b,c,4
@COLORS
0 0 0 0
1 255 255 255
2 0 0 255
3 127 0 127
4 127 63 127
5 0 127 0
```

That's all I have to say.

Oh yeah, and you can hide messages.

(Check gen 121 and remove top row)

Code: Select all

```
x = 7, y = 7, rule = Counter
B.B.ABA2$.A$.A2.A.A$4.A.A$.C2.C.C$3E.3E!
```