GridSim

The GridSim package is a simple package to simulate a random grid-based game.

It is a very flexible package, you just have to pass it an initial grid and a rule (via newgame), then you can iterate over the simulation (via days) and do whatever you want with this iteration.

See starting for more information on how to start using the package, and example for a complete example.