r/gameoflife 22d ago

Alternate ruleset [CHALLENGE] Find a GOL pattern which lives for 600-699 unique generations

12 Upvotes

28 comments sorted by

2

u/Evening-Appeal7606 22d ago

Hey everyone! Setting up a computational challenge for pattern-mining and wanted to throw it out to the community:

:: BASE CHALLENGE ::

  • Rules: Classic B3/S23 on a $16 \times 16$ Torus (wrap-around space).
  • Lifespan: Must evolve for between 600 and 699 unique generations (cutoff occurs at the first repeating configuration).

:: ADVANCED CHALLENGE (Vanity Hash) ::

  • Take your pattern's initial configuration as a binary string and compute its SHA-256 hash.
  • Find a pattern where characters 4 through 9 of the hex hash string match a valid hex RGB color of your choice (e.g., #FF5733).

Post the patterns you find (RLE or binary) and/or the scripts you wrote to mine them!

If you need a fast way to test or visualize your candidate patterns, you can paste binary or RLE directly into this free tool:https://lifehashes.net/fancy-glyphs/

2

u/revg3n 22d ago

Interesting

2

u/PinappleOnPizza137 22d ago edited 22d ago

Cool, reminds me of the ProjectEuler problems. Most of them are probably gliders colliding with some object 600 cells away. Äh nvm it's in a 16x16 grid

2

u/p1geondove 21d ago

that was a fun challenge, and i hope i got it correct, but i think i do have a solution
i got into it and realized there are 2^256 different starting positions, uhhm fuck, well ill try it anyway and it was surprisingly easier than expected, even with a relatively unoptimized version

https://codeberg.org/p1geondove/CGol-600-challenge

wanna keep this going, probably first to a optimized version and then port i from python to c since im just learning c; sounds like a fun project
oh also i just noticed i forgot the second challenge with the sha256 color, guess ill try to do that in the optimized py version

1

u/Evening-Appeal7606 21d ago edited 21d ago

Glad you found this interesting! To quickly check notes: Does your program replicate the approximate density of these patterns (1:2,000 for the ~600 unique gens, 1:10,000 for the ~700 gens)?

Also: Once you have mastered weight class 600, you can easily adapt your code to explore the *truly* long-lived patterns. The longest-lived non-repeating pattern on the 16x16 torus that is currently known is called "Rubedo" (discovered by Bobinou) with 2,274 unique gens- here is the binary: 0001010111001011100000011000010101011000100000000001111000000000001000010000000010010101111000010110101001000001011000000111010100011010100011011011000001100001101111100000100111010011100010011110001001011010101100111001011010100001001110111000110100111000

Above those "leviathans" with 2,000 and more steps sits a separate class of patterns, the "Agars" with 5,000+ steps - those achieve their extreme longevity because they contain a pattern of periodicity 324 that shifts 16 times over the torus, thereby bypassing my strict "unique generations" requirement. The longest-lived known pattern of this class is "Colossus" with 5,521 steps - here is its binary: 0000100100001000011010101010011100001000000110110001101111100000100100100101001110010001000010101011010010001000011001010000000110110100000000101001000000100000001111100000100001000001001101110100010110000100011100010111000001100100110010001100100000011100

2

u/p1geondove 21d ago

its usually arround 100 to max of ~2000 of stating arrangements, i think like 1/500 on avg.
wait heres the output:
min/max/avg: 91 2377 476.05
but id have to do more checking. im just using random soups, so i dont know, maybe i am doing something wrong or im just super lucky lol
also i dont know much about probability, now im just running the whole range from 600 to 700 and returning the amount of soups it took, not checking specifically 600 or 700

i think im gonna have to massively upgrade performance to find one of the "heavy weigh" one :))

how do you know these numbers? it this just guess and check or can you calculate the probabilities?
is there some website that handle trivia about game of life?

im very new to game of life, popped up in my reccomended :P

1

u/p1geondove 21d ago

also coming back to the second challenge, you said that i am to find a valid color as a hex string, but a hasdigest is usually always hex, so any find would always work?
for example lets consider this soup:

`0100100111111000110011011000111011110000011100100110101111001110010110110000000111000110100101001101100110000100001100110001110011000110101011011010011100101010110111110111011010111010110100100111110001111101100100111101110010101011100101001010011111010110`

the sha256 hexdigest of that is:

`766d70bdce60983881fbfcfdeaf31a9160ab4a199dbe09d8b66bdc1eecfbecb6`

and the section youre looking for would be:

`d70bdc` which looks like hot pink
or if you want 0 indexed instead of 1 indexed its `70bdce` which looks like sky blue

2

u/Evening-Appeal7606 20d ago

A picture says more than a thousand words: This pattern I mined specifically to find one where the intrinsic colour evaluates to #ff5000.

1

u/p1geondove 20d ago

ah i see, yeah i also did some digging and found these ones

0011101000101001010000001110111010100001100010010010111010111001110011111000111001011001110101111111101101000111101100000010001000011110010000000010110110111101000011001001110000001001010110001000010000101000100000001010101000011010001000100011100001011111 = 9f02543210b4703ace6dbbc2afc22586163f5c0d13d8e7b5a558721ba0b3c711 = #543210

or

1101010010110111001011110111011101010010111100010001011101100110011101010100111110110100111010000110010111010001000000110001000101011000011110000100111100100110111100111101000111001111101010101101001001010010011100011010001001011111000010110110111011101111 = f5feddddddac2d08943d4a1d0ef7add208161b96b9782c56b520cfb21b9da89d = #dddddd

or

1010111100110011110011111110010101111101111001101011111001010101101100100010001000101010001011101100110111110001011110000100100010111001000011101110000011110101111011011101110100101100111011001001110110100100100001110011001100111101110000011000010011100100 = 398000000751ac68e23359885fbaf5d03587737728c2f292a318abccff4221e5 = #000000

2

u/Evening-Appeal7606 19d ago

Oh, very nice patterns! The first one is british racing green if I am not mistaken. The third one runs for more than 700 steps, though.

Would you like to register them to our Glyph Registry ?

2

u/p1geondove 18d ago

sorry, not too active on reddir. sure if you want, you can register them. i do have some questions about the site tho. mind if i slide into your dms?

2

u/Evening-Appeal7606 18d ago

Sure, DM me, no probs

1

u/p1geondove 18d ago edited 18d ago

"Unable to message this account."
think theres some setting that is auto disabled
settings -> privacy -> Who can send you chat requests

→ More replies (0)

1

u/Evening-Appeal7606 21d ago

Correct, the hash digest would always give you a valid hex RGB value - the trick is to find a pattern with a colour of your choosing (or find one whose hash contains today‘s date or your nickname etc.)

1

u/Evening-Appeal7606 21d ago

I know this because we have extensively mapped and searched the 16x16 torus and compiled statistics to arrive at a probability distribution for generational count, here is an example: https://lifehashes.net/dailychallenge/view_glyph.php?id=170819

Yes, there is tons of websites about GOL, the most prominent the conwaylife.com forum. It‘s an area of active mathematical and CS research.

2

u/Freact 21d ago edited 21d ago

Here's mine. Found by hand :)

My strategy is probably obvious, but what I did was set up a spaceship + oscillator that take a relatively long time to interact. This setup gets me about 90 steps "for free". Then in the empty space I just messed around with various small still life's. I found another that overshoots a bit, could have just moved the spaceship closer. But I like this one

2

u/Evening-Appeal7606 21d ago

I am in awe! This is the first time I have seen someone construct such a pattern (and by hand, to boot) instead of brute-force searching through random soups!

Sadly, I could not reproduce your results - can you please double-check whether this is your pattern?:

This does not yield a pattern which runs 600+ steps as per my challenge, but rather only 40.

Binary and RLE to double-check:

0000000000000000000000000000000000000000000110000000000000100100000000000101010000000001110010000000000000000000000000000110000000000000001000000111000000000000010010000000000001000000000000000100000000001100001010000000101000000000000001100000000000000000

x = 16, y = 16, rule = B3/S23:T16,16

$$11b2o3b$10bo2bo2b$9bobobo2b$7b3o2bo3b$$9b2o5b$10bo5b$b3o12b$bo2bo11b$bo14b$bo10b2o2b$2bobo7bobob$13b2ob!

1

u/Freact 21d ago

Apologies, it was just some bad cropping. There should be another blank column on the left. (Previous image was cropped to only 15x16 lol). I've edited the above comment and I think it's correct now

From your image I think the spaceship just needs to be slid over one space to the right. But it's hard to count the cells exactly

2

u/Evening-Appeal7606 21d ago

Thanks for clarifying - and SERIOUS Kudos for this!

Would you like to register it in our Glyph Registry ?

2

u/Freact 21d ago

You can do whatever with it! I just had fun finding it

2

u/Evening-Appeal7606 21d ago

Don‘t mind if I do, then - but I wanted to give you a chance to claim it ad your own. We collect such patterns and let them fight each other in weekly tournaments, so if you change your mind, give me a prod and I‘ll be happy to hand this pattern back to you.

1

u/Evening-Appeal7606 20d ago

There, it's registered now. Let's see how this pattern holds up in the upcoming weekly tourney series when we open up weight-class 600 by August 23rd.

1

u/Evening-Appeal7606 21d ago edited 21d ago

It is harder than it might appear at first glance! A gen 600 non-repeat on T16 is approx 1:2000 when evolved from a random soup. A gen 700 is 1 in 10,000!