 |
Forums |
Admin Start New Thread
By: Heikki Ylönen
RE: why don't you waste your bullets [ reply ] 2005-11-29 18:34
|
Did you mean that the lower the heat the slower it cools? That would be something like this in the end of the robot.rb:
@gun_heat -= 0.1 * @gun_heat
@gun_heat = 0 if @gun_heat < 0.08
#@gun_heat -= 0.1
#@gun_heat = 0 if @gun_heat < 0
Maybe that could work..
|
By: Heikki Ylönen
RE: why don't you waste your bullets [ reply ] 2005-11-29 12:00
|
"Maybe firing a bullet should cost you some energy based on the energy level of the bullet."
Hey! Not based on the energy level but constant amount regardless of shot energy. That way it would be favourable to shoot less bullets. Hmm.. wait.. you could shoot yourself to death?
|
By: Heikki Ylönen
RE: why don't you waste your bullets [ reply ] 2005-11-29 10:00
|
Let's see where we are getting now.. I was a little worried when Rrrkele performed so well in 1 vs. 1 because the fight didn't look so nice with so many bullets flying. Multibotfight was different case.
If this becomes a problem, there are ways to solve it. For example changing shot energy - produced heat relationship from linear to non-linear: 30x0.1 shot produce more heat than 1x3 shot. That would make it less favourable choise.
|
By: Nobody
why don't you waste your bullets [ reply ] 2005-11-29 05:37
|
from the code in robot
@gun_heat -= 0.1
@gun_heat = 0 if @gun_heat < 0
@time += 1
in robot.rb
what i understand this, this means that
we can fire 0.1 without any harm.
robots except Rrrkele, fire when they scanned something, and other time, they spin the raders
without firing,
I don't understand why they don't fire during
radar spinning time, it doesn't matter you fire
0.1 or not,
how about this,
if scanned_something?
bula bula fire bullet
else
fire 0.1
end
I submitted KoDuck robot.
and i will submit again just change this.
It is a feature of this game, or
a kind of loophole?
anyway, I am having a good time with robots and
ruby, thank you.
|
|
 |