Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defrecord Person
- [
- x ;; The x position on the world
- y ;; The y position on the world
- z ;; The z position on the world, is equal to height of the tile.
- food ;; The current food this person is carrying.
- w ;; The current world as this person sees it.
- ]
- Actor
- (live [this]
- (do
- (. Thread sleep 1000)
- (send-off *agent* #'live)
- (println "living the good life"))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement