Skip to content
rugosi edited this page May 15, 2014 · 11 revisions

Cruel Predator & Prey Simulation

It is a simple simulation script on the theme predator & prey, with a reduced nutrition chain and a simplified rivalty between species.

Main actors:

  • plants (rabbit food)
  • rabbits (wolf and fox food)
  • foxes
  • wolves

Actor activities:

  • dried plants: revives or dies
  • plants: dries or survives and/or reproduces
  • rabbits: dies or eats and/or reproduces
  • wolves: dies or eats and/or reproduces
  • foxes: dies or eats and/or reproduces

Obligatory screenshot of the gui:

image

The gray color data is only used when simulation is reset. The black color data on white cells are validated immediately.

Note: the generation time can be considerably longer on iceweasel for some unknown reason. If you know a solution, give me a clue.

Challenges:

You can challenge yourself with funny objectives:

  • preserve all species during 20000 turns (steps)
  • protect the rabbits
  • let the foxes survive
  • etc.

Note: Please don't make to much harm to these animals, they are so innocent.