From 5477c430d8b00d128b825515996686d8f12f898c Mon Sep 17 00:00:00 2001 From: Richard Harrington Date: Tue, 6 Aug 2013 13:06:37 -0400 Subject: [PATCH] changed damage so it goes up instead of down --- src/robotwar/robot.clj | 2 +- src/robotwar/world.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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})