Thread for advanced questions

For general discussion about Conway's Game of Life.
User avatar
Vort
Posts: 245
Joined: May 14th, 2024, 6:35 am

Re: Thread for advanced questions

Post by Vort »

How to make hash for pattern on torus, which is not only orientation-independent, but also position-independent?
User avatar
wirehead
Posts: 304
Joined: June 18th, 2022, 2:37 pm
Location: /dev/full
Contact:

Re: Thread for advanced questions

Post by wirehead »

Vort wrote: August 9th, 2026, 6:21 am How to make hash for pattern on torus, which is not only orientation-independent, but also position-independent?
Probably the best way to do it would be to just enumerate all of the unique shifts of the repeating unit and then find the canonical apgcode of each and then choose the one with the shortest or dictionary-first apgcode. apgcodes already canonicalize the orientation of a pattern (see Apgcode#Canonical_form)
Langton's ant: Can't play the drums, can be taught.
User avatar
Vort
Posts: 245
Joined: May 14th, 2024, 6:35 am

Re: Thread for advanced questions

Post by Vort »

Thanks for the answer.
I thought about similar approach:
Just hash all N x M x 8 variations and XOR hashes together.
It is, however, too slow for the thing I was trying to do (random soup searches) and becomes totally impractical really quick. For example, hashing 1000x1000 pattern will take seconds of computing time.
I ended up just using simple hashes for all variations and linking them all to a single object, which represents orientation and position independent pattern.
But if someone finds practical method for hash calculation, it may be useful nevertheless, for future projects.
User avatar
B468S02357
Posts: 447
Joined: December 30th, 2025, 9:23 pm

Re: Thread for advanced questions

Post by B468S02357 »

Of the of the with and the is golly and the is rules and so how the do so and is the with and but so yet with the and the Repsplosion the into golly i cant?
Edit: I tried to do it with figuring the out the out the out the out the out the out and with of the golly and it says but the .rule and i am not knowing how to the .rule???
Last edited by B468S02357 on September 4th, 2026, 10:37 pm, edited 2 times in total.
I was born on march 23 (3/23). I was destined to be here, and here i am.
Check out my bird-brained biblioraphy if you're interested.
Big fan of crawler ships
User avatar
NNlk05
Posts: 570
Joined: January 14th, 2026, 8:42 pm
Location: Exploring in the Jungle of the INT Rulespace
Contact:

Re: Thread for advanced questions

Post by NNlk05 »

B468S02357 wrote: September 3rd, 2026, 9:20 pm Of the of the with and the is golly and the is rules and so how the do so and is the with and but so yet with the and the Repsplosion the into golly i cant?
???
Feci quod potui, faciant meliora potentes.

Code: Select all

x = 10, y = 3, rule = B34twz/S23
b2o4b2o$obo4bobo$2bo4bo!
[[ AUTOSTART AUTOHIDEGUI TRACK 0 -47/270 ZOOM 4 GPS 45 STEP 3 THEME BOOK ]]
https://nnlk05.github.io

=3
hotdogPi
Moderator
Posts: 2257
Joined: August 12th, 2020, 8:22 pm

Re: Thread for advanced questions

Post by hotdogPi »

I know it's difficult to parse the question above, but they're asking how to put an alternating rule into Golly. I believe it requires a ruletable, which I'm not familiar with myself.
User:HotdogPi/My discoveries

Periods discovered:

All evens ≤128 except 52,58,78,82,92,94,98,104,118,122

5-15,㉕-㉛,㉟㊺,51,63,65,73,75
1㊳㊵㊹㊼㊽,54,56,72,74,80,90,92
217,240,300,486,576

Guns: 20,21,32,54,55,57,114,117,124,126
SKOPs: 32,74,76,102,196
User avatar
MDA
Posts: 230
Joined: June 8th, 2026, 12:18 pm
Location: In Haven (B3-ry4acenqt5eir6-ek/S2-a3-a4nq5aeknr6-ak)
Contact:

Re: Thread for advanced questions

Post by MDA »

To make an alternating ruletable, you build separate ruletables for each rule you want to alternate (using state 1 for the first and state 2 for the second) and combine them so that all birth/survival conditions in rule 1 generate state-2 cells, and all birth/survival conditions in rule 2 generate state-1 cells. You should make state 1 and state 2 cells the same color.

An example, built from one of B468S02357’s alternating rules:

Code: Select all

@RULE Alt


@COLORS
0 000 000 000
1 255 255 255
2 255 255 255

@TABLE
neighborhood: Moore
symmetries: rotate4reflect
n_states: 3

var a={1,2}
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}
var j=i
var k=i
var l=i
var m=i
var n=i
var o=i
var p=i
var q=i

# B2a/S05

0,1,1,0,0,0,0,0,0,2

1,0,0,0,0,0,0,0,0,2

1,1,1,1,0,1,0,1,0,2
1,0,1,1,1,0,1,0,1,2
1,0,1,1,0,1,1,0,1,2
1,0,1,1,1,1,1,0,0,2
1,1,1,1,1,1,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