User Portlet User Portlet

Discussions
Hi Sam, I recently found some code which has helped: evolve[nbhd_List, k_] := 0 /; nbhd[[2, 2]] == 2 (*burning->empty*) evolve[nbhd_List, k_] := 2 /; nbhd[[2, 2]] == 1 && Max@nbhd == 2 (*near_burning&nonempty->burning*) ...
Hi all, I have recently been trying to model a CA for forest fires. I found some useful code on Rosetta code however it is applied to a 9-neighborhood totalistic model. I'm seeking to implement this, with a particular custom ruleset in place, for...
Thanks Michael! That's worked a treat.