Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 04-refs-agents/00-game.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
[loot-fn scenario]
(let [hoard (set (range 100))
smaug (character "Smaug" :health 500 :strength 400 :items hoard)
gandalf (character "Bilbo" :health 100 :strength 100)
bilbo (character "Gandalf" :health 75 :mana 750)]
bilbo (character "Bilbo" :health 100 :strength 100)
gandalf (character "Gandalf" :health 75 :mana 750)]
(dofutures 2
#(while (loot-fn smaug bilbo))
#(while (loot-fn smaug gandalf)))
Expand Down