Still hacking rules
This commit is contained in:
parent
9b52b7229b
commit
1682050fbd
|
@ -113,7 +113,7 @@
|
||||||
;; (fn [cell world]
|
;; (fn [cell world]
|
||||||
;; (cond (> (get-int cell :wolves) 8) (merge cell {:wolves 8})))
|
;; (cond (> (get-int cell :wolves) 8) (merge cell {:wolves 8})))
|
||||||
;; if there are not enough deer to sustain the get-int of wolves,
|
;; if there are not enough deer to sustain the get-int of wolves,
|
||||||
;; some wolves die or move on.
|
;; some wolves die or move on. (doesn't seem to be working?)
|
||||||
(fn [cell world]
|
(fn [cell world]
|
||||||
(cond (> (get-int cell :wolves) (get-int cell :deer))
|
(cond (> (get-int cell :wolves) (get-int cell :deer))
|
||||||
(merge cell {:wolves 0})))
|
(merge cell {:wolves 0})))
|
||||||
|
|
Loading…
Reference in a new issue