ScriptBots is an Open Source Evolutionary Artificial Life Simulation of Predator-Prey dynamics, written originally by Andrej Karpathy.
The simulation can currently be found:
- as a Visual C++ Project in the Downloads section [deprecated, very old version]
- On Github :
Andrej Karpathy code (original code, now uses cmake, but mostly intended for Ubuntu dev)
David Coleman's fork with a number of changes, aimed at running the simulation distributed, on a supercomputer
Julian Hershey's fork: several independent game changes, save/load functionality
If you fork and develop something interesting, I will add it here...
Another independent but same-spirited implementation was made by Tyler here.
Below are some pictures, videos, and notes about how the simulation works, but these are by now slightly outdated. Still, I choose to leave them here because they still show the basic idea.
Bots can specialize in processing plant food or meat, and can therefore become carnivores or herbivores.
Bots can hunt each other. They can communicate by flashing colors and also shouting at each other.
Bots can choose to share food with each other. (allows for altruism)
Both sexual and asexual reproduction is implemented.
When a bot dies, food is distributed evenly to bots around the event. This leads to emergence of both scavengers and hunting packs.
Every bot has 20 sensors, 9 actuators, internal variables and "brain".
Every agent has 20 sensors that range from 0->1:
Every agent has 9 Actuators ranging from 0->1 that change over time based on brain activity
Feel free to join our Google Group below and discuss the simulation, ask questions, or post some of your own forks and improvements!