### Discussion Forums: strategies

 Nested Flat Threaded Ultimate Show 25 Show 50 Show 75 Show 100

 By: Edwin v LeeuwenRE: why don't you waste your bullets [ reply ]   2005-11-29 20:49 Indeed, my mistake. Got it in my head that the heat rule worked differently than it actually does .

 By: Heikki YlönenRE: why don't you waste your bullets [ reply ]   2005-11-29 20:26 Robots didn't start to fire without that line. Heat approaches zero but never achieves it.

 By: Edwin v LeeuwenRE: why don't you waste your bullets [ reply ]   2005-11-29 20:01 You don't really need: @gun_heat = 0 if @gun_heat < 0.08 but it might be good to set some lowest limit...

 By: Heikki YlönenRE: 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: Edwin v LeeuwenRE: why don't you waste your bullets [ reply ]   2005-11-29 14:23 Or just let it cool with a certain rate, dependent on the current heat. That's physically more correct anyway. gun_heat = gun_heat - rate * gun_heat

 By: NobodyRE: why don't you waste your bullets [ reply ]   2005-11-29 12:13 How about changing minimun value of bullets from 0.1 to, for example, 0.5 or something.

 By: Heikki YlönenRE: 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: Simon KrögerRE: why don't you waste your bullets [ reply ]   2005-11-29 11:42 I guess this will become a problem. Maybe firing a bullet should cost you some energy based on the energy level of the bullet.

 By: Heikki YlönenRE: 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: Nobodywhy 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.