Cellular Automata - (Fire, Water, Grass)

Posted on by Kenny Cason
tags = [ Cellular Automata ]

The code can all be found on GitHub: here

A large gif demonstrating the rules being applied with mutual attacks

A large gif demonstrating the rules being applied with only the attacker attacking. Note how much smoother the patterns are.

The below convergence graph shows how the populations starting from a random state tend towards homogeneousness. The end state is that each of the three elements represent approximately 33% of the occupied space.

The below graph shows when both the attacker and defender exchange an attack.

The below graph shows when only the attacker attacks each step.

A video of a larger simulation: here

comments powered by Disqus