L-Systems

While reading Kenneth Stanley’s paper A Taxonomy for Artificial Embryonogeny I kept coming across new techniques I want to implement in biogenesis. The L-Systems seemed the simplest to try out, so here are the results of various grammars:

These don’t really look like ‘organisms’ yet because I was just testing out the capabilities and am still developing rules for body generation. The rules take the most work to think out; the code is incredibly simple. Here is the function of applying the rewrite rules:

View function ‘Apply’ here: http://pastebin.com/QMxjzzTy

The code to derive is a little more complex, but still manageable (this is only the derivation of the ‘Fern’ shown above:

View function ‘Derive’ here: http://pastebin.com/qCpHMhqk

That these were so easy to implement is going to prove helpful when I implement a body evolution system, so biogenesis gets both dynamic, evolved bodies and children that look like their parents with the ability to mutate.