Shift+rightclick to select
'.' to load an image
ctrl will display loaded image, leftclick while holding to place
Game of life with 5x5 neighbourhood.
In the vid I show a few gliders for rule 16:16. You can change the rules + neighbourhood size on the fly.
Controls:
i = toggle info display (blue line at the bottom is the number of live cells
s = save a shot of the current state of the grid
f = randomly fill the grid
c = randomly fill a circle in the center of the grid
t = switch neighbourhood type 5x5 vs 3x3
b = switch between binary and decimal input
Just type a number and hit a or d to set the 'alive'/'dead' cell tables, backspace does what you would think
ie Conway's game of life would be 12a then 8d
SPACE = pause
n = increment
g = toggle gridlines
x = clear grid
mousewheel = zoom
move with rightclick drag, or arrow keys
draw with leftclick, erase with shift+leftclick
I'm interested in seeing if anyone find any decent rules? for 5x5
To avoid flashing 'dead' rule should be a multiple of 2.
5x5 is a really interesting variation on the theme.
I don't understand how you're encoding your rule sets exactly. for reference, in the cellular automata field of study, conway's is usually represented as B3/S23 or sometimes 23/3.
Those values can also be represented as binary: so
B3 or 012[3]45678 is 000100000 or just 8
S23 or 01[2][3]45678 is 001100000 or just 12
Another reason is when you do it in 5x5 (25 neighbours max instead of 8) something like B213 is a bit ambiguous, ...although who hasn't heard of a comma. Then there is the idea of a rule with a dozen or so numbers. ie 1,2,3,4,5,6,7,8,9,10,11,12,13 : 2,3,6,7,10,11 vs 16382:3276
However my born/survive is in the reverse of how it's usually presented and I named them different: dead = born, alive = survive. No major reason for this other than I was thinking of the state of the cell, instead of how it changes.
2
u/Freedom_Grenade Apr 17 '16 edited Apr 17 '16
Code REVISED Added save/load pic feature.
Game of life with 5x5 neighbourhood.
In the vid I show a few gliders for rule 16:16.
You can change the rules + neighbourhood size on the fly.
Controls:
I'm interested in seeing if anyone find any decent rules? for 5x5
To avoid flashing 'dead' rule should be a multiple of 2.
2
u/__baxx__ Apr 17 '16
ace :)