-
Notifications
You must be signed in to change notification settings - Fork 0
Gettingstarted
dankrusi edited this page Apr 5, 2012
·
3 revisions
The Life Simulation Challenge runs on Windows, Linux, and OS X. In order to run the software and implement your own Lifelet class, you must have the Microsoft .Net Framework or Mono Framework installed.
- Microsoft .Net: Download and install Visual Studio
- Mono: Download and install MonoDevelop
- Mono: Run
sudo aptitude install mono monodevelop
- Mono: One-Click-Install
- Mono: Download and install MonoDevelop
Grab the source from Github. You can do this via Git or HTTP:
- Git Read-Only:
git clone git://github.com/dankrusi/life-simulation-challenge.git
- Git SSH:
git clone git@github.com:dankrusi/life-simulation-challenge.git
- HTTP ZIP: https://github.com/dankrusi/life-simulation-challenge/zipball/master
Build:
- Visual Studio:
msbuild LifeSimulation.sln
- Mono:
mdtool build LifeSimulation.sln
The following example Races are included with the Framework:
Study the examples to get a quick grasp how things work.
- In the Life Simulation (
LifeSimulation.sln
) solution, add a new Library project with the namespaceLifeSimulation.Races.[YourName]Race
. - Under the project options, set the output dir to the
bin
folder and target framework to .Net 4.0. - Add a reference to the Core project.
- Add a new class
[YourName]Lifelet
, which implements the Lifelet class. - Override the properties
Race
andAuthor
accordingly. - Implement the method
Simulate
.
- Build your Race project and make sure the DLL files appear in the Life Simulation
bin
folder. - Run the Core project GUI and select your Lifelets.
- Use the key
D
to toggle the debug display.