Variations on a theme by Conway
May 10, 2009Inspired by CS1004’s Game of Life assignment, I’ve been playing around with different rule sets for various cellular automata. One of the CAs I came up with, what we might call the “Goldilocks game”, produces some really nice-looking results. It’s defined as follows:
- Choose constants A, B, C and D.
- Define for each cell some temperature T, initially equal to zero.
- Define for each cell a value N, the sum of all its (8-connected) neighbors’ temperatures.
- If T = A, it is “hardened” and remains unchanged for the rest of the game.
- If N > B, set T := 0. (The neighborhood is “too hot”.)
- If C < N < B, set T := T + 1. (The neighborhood is "just right".)
- If N < C and N < D, set its temperature to 0. (The neighborhood is "too cold".)
- If no other condition was satisfied, the cell remains the same temperature.
A couple of my favorites are shown below. Click inside the applet to start/stop.
A=100, B=90, C=6, D=7
A = 255, B = 300, C = 10, D = 7. Note the marquee-style blinking dots that grow along the horizontal and vertical pathways.
Source code is available at http://projects.jacobandreas.net/cellular/src. I may try to put together an interactive version as well.
hi there, how can I download your photon 2 theme. I have photon, trying it right now but having some problems to get it to work.
I like how it looks and would like to use it,
many thanks
merce — May 19, 2009 @ 2:32 pm