Still hacking rules

This commit is contained in:
simon 2014-07-04 11:03:39 +01:00
parent 9b52b7229b
commit 1682050fbd

View file

@ -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})))