diff --git a/src/robotwar/robot.clj b/src/robotwar/robot.clj index e74747c..a2e1a9e 100644 --- a/src/robotwar/robot.clj +++ b/src/robotwar/robot.clj @@ -96,7 +96,7 @@ TODO: add a lot more stuff here that happens after the step-brain function, like moving the robot. Actually, that's the main thing." [robot world] - (if (<= (:damage robot) 0) + (if (>= (:damage robot) 100) world (brain/step-brain robot world))) diff --git a/src/robotwar/world.clj b/src/robotwar/world.clj index 70f9597..df8ff97 100644 --- a/src/robotwar/world.clj +++ b/src/robotwar/world.clj @@ -14,7 +14,7 @@ program {:pos-x (rand-int width) :pos-y (rand-int height) - :damage 100})) + :damage 0})) programs)) :robot-idx 0})