comparison clojure/com/aurellem/world/practice.clj @ 263:a44a2c459aeb

Corrected hxc-evolution so that pokemon with branched evolutions (i.e. eevee) will be fully included. As a result, altered hxc-evolution to return a list of hashes, one per evolution.
author Dylan Holmes <ocsenave@gmail.com>
date Mon, 26 Mar 2012 21:25:10 -0500
parents b2f9a0cb13e3
children a60ea8632ff4
comparison
equal deleted inserted replaced
262:868783405ac2 263:a44a2c459aeb
249 (assoc mem start x) 249 (assoc mem start x)
250 (inc start) 250 (inc start)
251 (rest strs-or-ops)))))) 251 (rest strs-or-ops))))))
252 252
253 (def rewrite-rom 253 (def rewrite-rom
254 "Alters the ROM array using write-memory." 254 "Alters the ROM array using write-memory. Takes a list of
255 various strings/bytes as data."
255 (partial rewrite-memory (vec (rom(root))))) 256 (partial rewrite-memory (vec (rom(root)))))
256 257
257 (defn restore-rom! [] (write-rom! original-rom)) 258 (defn restore-rom! [] (write-rom! original-rom))
258 259
259 260