I am unable to get “Patrol Buster” to work in Clojure. First off, the comment starts with a
# and gives a syntax error, requiring me to delete the line, second, the following code won’t work:
(dotimes [n 1000] (let [enemy (.findNearestEnemy this)] (if enemy (do (.attack this enemy))) ))
The warrior just stands there getting beat to death. If I replace the
.say, I can see the name of the enemy. Is this a bug in Clojure?