Тёмный

Hex Automata: "Hexapus". Rule 304 + Seed 66.501 

Fractal Automata
Подписаться 809
Просмотров 1,7 тыс.
50% 1

This test run confirms that the "totalistic" color-coding function is compatible with auto-zoom and with both the square- & hexagon-shaped grids. Also, this is the introduction of the new "hexapus" seed.
Parts 1 & 2 of this video use the square- & hexagon-shaped grids, respectively. Both parts use auto-zoom.
Most videos here use "age-based" color-coding, which colors to indicate birth, life, & death. By contrast, the "totalistic" color-coding in this video simply colors a cell according to how many of its 6 neighboring cells are alive, and thus 7 colors are needed for 0 - 6 neighbors.
Note that the rule-set used here is not simply totalistic like the color-coding. Although the rule-set does take into account the total number of live neighbors, it is more complex and includes other inputs (to be elaborated at a future date).
Rule 304 is the "Universal Replicator", which makes multiple copies of any seed. Somehow the process always works despite all the chaos produced by collision between parts of the growing pattern.
2-Dimensional cellular automata, hexagonal array,
Totalistic Color-coding for cells with 0 to 6 live neighbors:
dark blue = 0 live neighbors,
light blue = 1 live neighbor,
orange = 2 live neighbors,
yellow = 3 live neighbors,
green = 4 live neighbors,
light violet = 5 live neighbors,
dark violet = 6 live neighbors,
black = dead cell/empty space.
(This color palette has not been optimized yet).
---------------------------------------
General Procedure:
STEP 1). Make a 2-dimensional grid (array) of "cells" which can each have a value of 0 (off/dead) or 1 (on/alive). Conway's famous "Game of Life" cellular automaton uses a square grid, but here we use a hexagonal grid (chicken-wire or honeycomb). Initialize the grid by filling it with all zeros. This is the "main grid".
STEP 2). Add a starting "seed" pattern to the main grid by changing some of the cell values to "1" (on/alive). Sometimes specific compact seeds are used, alternatively sometimes they are a random unstructured spread of ones that II call "primordial soup".
STEP 3). The program then looks at every cell in the entire main grid, one-by-one. When examining each cell, the total number of live neighbor cells is counted among its 6 immediately adjacent neighbor cells (if using "totalistic" rules). The program then consults the rule-set to decide if the central cell will be alive (1, on) or dead (0, off) in the next time-step. In order to not disturb the cell pattern that is being updating, all of these new values are accumulated on a separate "temporary grid".
STEP 4). After every cell is updated on the temporary grid, the main grid is re-initialized to all zeros, and then the temporary grid is copied to the main grid
STEP 5). Repeat Steps 3 & 4 for hundreds or thousands of iterations. The result of each iteration serves as the input for the next iteration. The grid is finite, so the live cell pattern will eventually go repeat or go extinct, although this could take thousands of time-steps.
---------------------------------------
Note: this "Hexagon-Multiverse" (HMCA) cellular automaton is similar to Conway's famous "Game of Life" in the sense that both are 2-dimensional, have binary cell states, and are synchronous and deterministic. But the Game of Life uses a square grid, while the HMCA uses a more natural (common in nature) and more symmetrical hexagonal grid. Additionally, the HMCA achieves interesting results using a variety of rule-sets, whereas the Game of Life is limited to a single rule-set.
Cell Grid:
Part 1: Square-shaped grid size starts at 24 x 24 (columns x rows), and grows to 120 x 120 by time-step 44, and then remains constant.
Part 2: Hexagon-shaped grid starts with a radius of 16 cells, and grows to radius 60 by time-step 39, and then remains constant.
Periodic boundary conditions:
Part 1: Square-shaped grid has 2 pairs of opposite edges wrap to give a finite closed continuous surface equivalent to a 2-torus (the surface of a standard 3-d ring donut).
Part 2: Hexagon-shaped grid has 3 pairs of opposite edges wrap to give a finite closed continuous surface equivalent to a 2-torus (the surface of a standard 3-d ring donut), but containing a 180 degree twist.
Neighborhood: semi-totalistic (details to be published at a future date),
Time: 192 steps for both Parts 1 and 2 (display rate 5 fps). The first & final frames are shown for 1 & 2 seconds, respectively.
Live cell population:
Part 1: Square-shaped grid starts at 36, reaches a maximum of 6972 on time-step 117, and ends with 1218 on time-step 192.
Part 1: Hexagon-shaped grid starts at 36, reaches a maximum of 4916 on time-step 124, and ends with 1584 on time-step 192.
Resolution: 2578 screen pixels per cell,
Program: "Hexagon-Multiverse 1.0" (unpublished), PHP language.
Platform: MacBook Pro (M1), Sonoma 14.1.1 OS, Safari 17.1 browser.

Наука

Опубликовано:

 

12 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@skmgeek
@skmgeek Месяц назад
I love rule 304
@hexagon-multiverse
@hexagon-multiverse Месяц назад
Me too, and it is unique. After examining hundreds of rule-sets, I've found a few that can replicate specific seeds, but rule-set 304 is the only one I've seen that can replicate whatever seed you give it.
@arbieroo5679
@arbieroo5679 Месяц назад
Hexapus is an interesting character - can clone itself!
@hexagon-multiverse
@hexagon-multiverse Месяц назад
And Hexapus is really fond of the number 6. My favorite number too!
@azai.mp4
@azai.mp4 23 дня назад
I think this particular rule counts the number of alive cells in the neighborhood and sets the cell to alive if that number is odd and dead otherwise. (Originally I said "even" instead of "odd" but multiverse helpfully corrected me.) Which, if you represent alive as a 1 and dead as a 0, is the same as adding 6 copies of the pattern, offset by the 6 directions, together modulo 2. Now, you'd perhaps think that repeating that process leads to way more copies, but because 1+1=0 mod 2, a lot of the copies cancel out, and you end up with 6 copies again. That means that after 2 steps, and then 4 steps, and then 8 steps, etc., you see 6 copies of the original pattern, separated by ever greater distances. At the start, you can't really see what's going on, because the copies overlap each other, but eventually the copies are far enough from each other that you can see them separate.
@hexagon-multiverse
@hexagon-multiverse 22 дня назад
Your explanation about copies cancelling out sounds good, although I am still contemplating the details. But your claim that a cell will become alive only if it has an even number of live neighbors contradicts examples I've seen where cells with only one live number come to life. To shown what I mean, I will upload a video later today with the "Universal Replicator" rule 304 applied to a single live cell. That central cell dies immediately since it has zero live neighbors (zero neighbors = death is baked into the rule). But the 6 empty cells around the central cell each have exactly one live neighbor -- the central cell. And the pattern does grow. I used a single cell to make it easier to see the mechanistic details. I'd be interested in hearing more of your thoughts about this special rule.
@hexagon-multiverse
@hexagon-multiverse 22 дня назад
Here is the video I mentioned, with the rule applied to a single live cell ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-TQYn6QlSWgQ.html
@azai.mp4
@azai.mp4 22 дня назад
​@@hexagon-multiverse Whoops sorry, I meant the opposite of what I wrote: a cell stays/becomes alive if it has an *odd* number of alive neighbors and stays/becomes dead otherwise.
@johnsmithsu310
@johnsmithsu310 Месяц назад
How TF did i get here
@hexagon-multiverse
@hexagon-multiverse Месяц назад
The RU-vid Artificial Intelligence must have decided that you are ready for this form of madness, LOL
Далее
Cellular Automata
6:32
Просмотров 61 тыс.
Good deed #standoff #meme
00:15
Просмотров 1,4 млн
AI Learns to Play Tag (and breaks the game)
10:29
Просмотров 2,4 млн
Bouncing simulations that I watch before sleep
8:16
Просмотров 1,3 млн
Poly Rhythms
1:59
Просмотров 2 млн
Non-Euclidean Worlds Engine
5:15
Просмотров 11 млн
The ALMOST Platonic Solids
28:43
Просмотров 124 тыс.
Turning Math Into Art With Beautiful Fractals
8:45
Просмотров 254 тыс.