mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-08-20 02:29:35 +00:00
changed damage so it goes up instead of down
This commit is contained in:
parent
3cdc91cd73
commit
5477c430d8
@ -96,7 +96,7 @@
|
|||||||
TODO: add a lot more stuff here that happens after the step-brain function,
|
TODO: add a lot more stuff here that happens after the step-brain function,
|
||||||
like moving the robot. Actually, that's the main thing."
|
like moving the robot. Actually, that's the main thing."
|
||||||
[robot world]
|
[robot world]
|
||||||
(if (<= (:damage robot) 0)
|
(if (>= (:damage robot) 100)
|
||||||
world
|
world
|
||||||
(brain/step-brain robot world)))
|
(brain/step-brain robot world)))
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
program
|
program
|
||||||
{:pos-x (rand-int width)
|
{:pos-x (rand-int width)
|
||||||
:pos-y (rand-int height)
|
:pos-y (rand-int height)
|
||||||
:damage 100}))
|
:damage 0}))
|
||||||
programs))
|
programs))
|
||||||
:robot-idx 0})
|
:robot-idx 0})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user