I don't know how ruler.mc works.

For discussion of specific patterns or specific families of patterns, both newly-discovered and well-known.
Post Reply
User avatar
PkmnQ
Posts: 1137
Joined: September 24th, 2018, 6:35 am
Location: Server antipode

I don't know how ruler.mc works.

Post by PkmnQ » December 13th, 2018, 1:09 am

Can somebody please tell me how ruler.mc works?
I want to make a rule out of it.
Not, not somebody else, I want me to do it.
Last edited by PkmnQ on December 14th, 2018, 9:26 am, edited 1 time in total.

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Re: I don't know how ruler.rle works.

Post by Redstoneboi » December 14th, 2018, 3:39 am

did you mean Patterns/Non-totalistic/infinite-binary-ruler-generator.rle
if so I don't know, I'll golf it myself for a better understanding.
it seems to have these little trails going back and forth, only being cancelled once the top trail comes down and the bottom trail hits it.
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

User avatar
PkmnQ
Posts: 1137
Joined: September 24th, 2018, 6:35 am
Location: Server antipode

Re: I don't know how ruler.mc works.

Post by PkmnQ » December 14th, 2018, 9:27 am

Sorry, I meant ruler.mc (in Patterns/HashLife/ruler.mc)

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Re: I don't know how ruler.mc works.

Post by Redstoneboi » December 15th, 2018, 2:55 am

PkmnQ wrote:Sorry, I meant ruler.mc (in Patterns/HashLife/ruler.mc)
Oh, in that case, it's simply a backrake moving east producing a stream of signals moving west, a gun making northeast signals in the middle, and an OTT (one time reflector) puffer moving northeast as well.
you could also use a reflector and a gun that both get pushed farther and farther for every signal instead, but the original uses a puffer and a backrake.

each westward signal destroys a diagonal signal on the left, and just leaves to be output.
if a diagonal signal gets through, it gets reflected by an OTT, and then eventually hits the westward signal stream, destroying 2 signals each.

there's one diagonal signal that makes it through at the start, that hits an OTT and gets reflected downward into the stream, causing 2 holes where diagonal signals get through. these 2 signals hit more reflectors, and destroys more and more holes.

P.S. I already made the rule with the push reflector and push gun, but I won't post the rule until you post yours. have fun golfing!
P.P.S in the meantime, have this photo of the Ruler generator!
4E3E133B-5E3E-48C2-80D6-B4A065A86737.png
4E3E133B-5E3E-48C2-80D6-B4A065A86737.png (487.31 KiB) Viewed 8074 times
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

User avatar
PkmnQ
Posts: 1137
Joined: September 24th, 2018, 6:35 am
Location: Server antipode

Re: I don't know how ruler.mc works.

Post by PkmnQ » December 18th, 2018, 3:52 am

Code: Select all

@RULE Ruler

@TABLE
n_states:8
neighborhood:Moore
symmetries:none

#State 1: Output
#State 2: Output Rake
#State 3: Intermediate signal
#State 4: Intermediate signal gun
#State 5: Reflector
#State 6: Reflector puffer
#State 7: Eliminator

var a = {0,1,2,3,4,5,6,7}
var b = a
var c = a
var d = a
var e = a
var f = a
var g = a
var h = a
var i = {0,1,2,3,4,5,6}
var j = {0,2,3,4,5,6,7}
var k = {0,1,2,4,5,6,7}
#Movement
7,a,b,c,d,e,k,f,0,0
7,a,b,c,d,e,3,f,g,3
7,a,b,c,d,e,f,g,3,0
0,a,b,c,d,e,f,g,7,7
1,a,b,c,d,e,f,7,g,0
1,a,b,0,c,d,e,f,i,0
1,a,b,c,d,e,f,g,7,7
0,a,b,1,c,i,d,e,f,1
3,a,b,j,d,e,0,f,g,0
3,a,b,c,d,e,1,f,g,0
3,a,b,1,c,d,e,f,g,1
0,a,b,c,d,e,3,f,g,3
0,a,b,c,d,e,f,2,g,2
0,a,b,c,d,e,6,f,g,6

#Generation
2,a,b,c,d,e,f,g,h,1
0,a,b,c,d,e,4,f,g,3
6,a,b,c,d,e,f,g,h,5

#Reflection
5,a,b,c,d,e,3,f,g,7

@COLORS
0 0 0 0
1 255 255 255
2 0 255 0
3 255 127 0
4 255 0 0
5 127 127 127
6 0 127 255
7 255 255 0
2 is the backrake.
4 is the diagonal gun.
6 is the reflector puffer,

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Sliding Ruler rule

Post by Redstoneboi » December 18th, 2018, 9:14 pm

Here's the "sliding" way to do it. By the way this concept only works with alternating fire, solid rays just don't work very well. The best I can do with solid rays is 3,6,3,9,3,6,3,12... which is 1,2,1,3,1,2,1,4... multiplied by 3

Here's the rule:

Code: Select all

@RULE SlideRuler
@TABLE
n_states:7
neighborhood:Moore
symmetries:none
var a{0,1,2,3,4,5,6}
var b=a
var c=a
var d=a
var e=a
var f=a
var g=a
var h=a

var s{3,4}

#reflect
0,a,b,c,d,6,5,g,h,5
0,a,b,c,d,e,s,5,h,6
5,a,b,6,d,e,f,g,h,0

#cancel
0,a,b,c,d,e,f,1,6,1
0,a,b,c,d,e,1,6,h,5
1,6,b,c,d,e,f,g,h,0
5,a,b,c,d,1,f,g,h,0

0,a,b,c,d,e,f,1,5,1
0,a,b,c,d,e,1,5,h,2
1,5,b,c,d,e,f,g,h,0

#space
0,a,b,c,d,e,f,g,6,6

0,a,b,c,d,1,f,g,h,2
0,a,b,2,d,e,f,g,h,2

0,a,b,c,d,e,3,g,h,4
0,a,b,c,d,e,4,g,h,4

#photons
2,a,b,c,d,e,f,g,h,0
4,a,b,c,d,e,f,g,h,0
6,a,b,c,d,e,f,g,h,0
And this is the seed:

Code: Select all

x = 2, y = 2, rule = SlideRuler
E$CA!
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

Post Reply