Skip to content

bertschneider/EvolutionLoop

Repository files navigation

EvolutionLoop

EvolutionLoop is a little simulation game based on the one in the great book Land Of Lisp.

It simulates a world in which animals move around on their search of food. As the world progresses they reproduce and mutate and eventually build two new kinds of animals.

Tests

Currently the tests aren't working. I tried midje but that didn't work out for me. I will rewrite them step by step with LazyTest.

To run the available tests use: lein lazytest

Usage

A few GUIs are planned for this game. Currently only a REPL GUI exists but a Swing and Web GUI will follow.

REPL

The easiest way to start the simulation is to use the functions provided in package de.herrnorbert.EvolutionLoop.gui-repl.gui-repl. Furthermore there are some functions to inspect the world and the animals in it.

 $ lein repl
 REPL started; server listening on localhost:34850.
 user=> (ns de.herrnorbert.EvolutionLoop.gui-repl.gui-repl)
 nil
 de.herrnorbert.EvolutionLoop.gui-repl.gui-repl=> (compile 'de.herrnorbert.EvolutionLoop.gui-repl.gui-repl)
 de.herrnorbert.EvolutionLoop.gui-repl.gui-repl
 de.herrnorbert.EvolutionLoop.gui-repl.gui-repl=> (evolve-times 10000)
 0% .................................................................................................... 100%
      *                          *                          *                    *  *              A 
       A              A      A       *     *                      A                    A             
          A           A                   *                                        *                 
                                              A*    A                *            *                  
              A A  A   A                        A                                 * A           *    
                                                      A         *               *                   A
  A  A           *         *                      A A A                            A           *     
          A                                  A  AA          A                                        
                  A                         A     AA                     *                        *  
   A    A                            A             A  A       A                   AA                 
      A                A     A   *          A A A A                 A                                
           A                     *       *A         AA *               A                   *         
    A A                                        AA A    AA     *                              *       
                                              A   A  A  AA              A                            
                         A           A           A A                                 *    A          
       A                         A            A AA AA AAA                                     A      
                                           AA  AAA  A AA       A                                  A  
            A                              A    AA  A  * A                *                   A   A  
 A     A A                       A          A   A     A    A                                       * 
                                         A    AA                                                     
     A        A   A                                    A       A           A   A                     
                                                     AA  A                                 *         
           A                             A A                 A                          A            
                         *             *       A          A                                          
                                       A         A                         A*   A* **                
                                                                             A                       
         A                                      A    A              *                   *            
    A    A    A         * A  A            *         A     *           AA         A         *         
               *             A       *     A    A              *     A                             AA
                        A                           *                                         A      
 "Year 10000"

Documentation

Have a look at the docs folder. It's powered by Marginalia.

License

Copyright (C) 2010 FIXME

Distributed under the Eclipse Public License, the same as Clojure.

About

Little simulation game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published