ScriptBots is an Open Source Evolutionary Artificial Life Simulation of Predator-Prey dynamics, written by Andrej Karpathy.
C C++
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
.gitignore first commit in modularizing the codebase Feb 12, 2011
Agent.cpp More refactoring. Trying to move as possible that deals with modifyin… Feb 12, 2011
Agent.h More refactoring. Trying to move as possible that deals with modifyin… Feb 12, 2011
CMakeLists.txt Make CMake copy the glut32.dll file to VS' output directory. Feb 13, 2011
DWRAONBrain.cpp More refactoring. Trying to move as possible that deals with modifyin… Feb 12, 2011
DWRAONBrain.h Change from vector<bool> to vector<char> as vector<bool> is evil! Feb 14, 2011
GLView.cpp add missing includes so it can build on windows Feb 13, 2011
GLView.h Re-add the food drawing functionality. Feb 13, 2011
README.markdown fix formatting Feb 14, 2011
README.txt Combine the README files Feb 14, 2011
View.cpp Add the new View modules, and a simplified main.cpp Feb 12, 2011
View.h Re-add the food drawing functionality. Feb 13, 2011
World.cpp Add old reporting code. It needs to be fixed yet. Feb 13, 2011
World.h Re-add the food drawing functionality. Feb 13, 2011
changes.txt Add readmes and changes Feb 11, 2011
config.h.in Only include the local gut.h file if we're on windows and the GLUT li… Feb 13, 2011
glut.h Port to linux with CMakeLists. Should be cross platform. Feb 11, 2011
glut32.dll Add windows specific files. Feb 11, 2011
glut32.lib Add windows specific files. Feb 11, 2011
helpers.h More refactoring. Trying to move as possible that deals with modifyin… Feb 12, 2011
main.cpp add missing includes so it can build on windows Feb 13, 2011
report.txt Port to linux with CMakeLists. Should be cross platform. Feb 11, 2011
settings.h More refactoring. Trying to move as possible that deals with modifyin… Feb 12, 2011
vmath.cpp Port to linux with CMakeLists. Should be cross platform. Feb 11, 2011
vmath.h Port to linux with CMakeLists. Should be cross platform. Feb 11, 2011

README.markdown

SCRIPTBOTS

  • Author: Andrej Karpathy
  • License: Do whatever you want with this code

Project website: (https://sites.google.com/site/scriptbotsevo/home)

Mailing List / Forum: (http://groups.google.com/group/scriptbots/topics)

Older project website (just in case): (http://code.google.com/p/scriptbots/)

BUILDING

To compile scriptbots you will need:

It will use OpenMP to speed up everything, in case you have multicore cpu.

If you are on Ubuntu (or debian) you can install all the dependencies with:

$ apt-get install cmake build-essential libopenmpi-dev libglut32-dev libxi-dev libxmu-dev

To build ScriptBots on Linux:

$ cd path/to/source
$ mkdir build
$ cd build
$ cmake ../ # this is the equiv of ./configure
$ make

To execute ScriptBots simply type the following in the build directory:

$ ./scriptbots

For Windows:

Follow basically the same steps, but after running cmake open up the VS solution (.sln) file it generates and compile the project from VS.

USAGE

Follow the above instructions to compile then run the program.

Hit 'd' to make it go MUCH FASTER (and not draw). Speed can also be controlled with + and -.

QUESTIONS COMMENTS are best posted at the google group, available on project site or contact me at andrej.karpathy@gmail.com

Contributors: