Added ruleset to model thaw after ice-age, and separated out the
herbivore/predation rules into a separate ruleset 'ecology.txt'
This commit is contained in:
parent
cbdf01c4c2
commit
ea1af2103f
7 changed files with 212 additions and 22 deletions
|
|
@ -3033,8 +3033,7 @@ net.brehaut.ClojureTools = (function (SH) {
|
|||
</td><td class="codes"></td></tr><tr><td class="docs">
|
||||
</td><td class="codes"><pre class="brush: clojure">(ns mw-engine.core
|
||||
(:require [mw-engine.world :as world]
|
||||
mw-engine.natural-rules
|
||||
mw-engine.utils))</pre></td></tr><tr><td class="docs"><p>Every rule is a function of two arguments, a cell and a world. If the rule
|
||||
mw-engine.utils))</pre></td></tr><tr><td class="docs"><p>Every rule is a function of two arguments, a cell and a world. If the rule
|
||||
fires, it returns a new cell, which should have the same values for :x and
|
||||
:y as the old cell. Anything else can be modified.</p>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue