[Home]History of BenHorner

Robo Home | Changes | Preferences | AllPages


Revision 112 . . (edit) September 28, 2007 5:35 EST by BenHorner
Revision 110 . . September 22, 2007 20:21 EST by BenHorner [Thanks for making me think about it carefully GrubbmGait.]
Revision 109 . . September 22, 2007 11:17 EST by GrubbmGait [ram damage and ram score clarification (I hope)]
  

Difference (from prior major revision) (minor diff, author diff)

Removed: 9,10d8
* /Code?
* /Links?

Removed: 28,54d25
* Yeah, that's cool, thanks. I actually remember seeing that one in the API. I looked through it... so if two robots are moving in the same direction (and both forward), but the one in front is moving more slowly, and the one behind hits it, is that counted as a ram for both of them? --BenHorner
** Yip! Otherwise my bots wouldn't get any ram damage against those pesky rambots! =) -- Skilgannon
**It looks to me like the rammer will take 0.6 damage and the rammed will take 1.8 (0.6 + 1.2 bonus). So the rammer delivers 3x the damage, but still takes damage. If two bots ram each other head on each will take 2.4 damage per tick from the two ram events. -- Martin (I have not tested this .. just inferring from the Rules class above)

This is from the [[Robocode FAQ]]:

Q: What happens when a my robot hits another robot?
A: If your robot was moving towards the other robot when hitting it (i.e. ramming), your robot's move is marked as
complete, and your robot receives 1.2 score points. Both robots takes a constant 0.6 damage.

I don't know why I was considering to be a better source of information than the javadoc comments... Just because I read it before I knew the javadocs existed I guess. =) Now I will have to test it to find out which is right! --BenHorner
*And I think the FAQ is right. A non-moving, non-firing bot and a non-firing rambot go down on energy at the same rate. The only thing is that the rammer gets the scoring bonus and used to win the battle (as source of the ramdamage, until the latest robocode version). No test done though, just digged in my memory how the behaviour of GrubbmThree and opponents was during its development. -- GrubbmGait

Ok, I just did a test, I rammed SittingDuck to death with Interactive before the countdown started... Interactive was disabled at the end (both received 0.6 damage per ram) and it scored 290.
|Category|Score|
|Total Score |290 |
|Survival |50 |
|Surv Bonus |10 |
|Bullet Dmg |0 |
|Bullet Bonus|0 |
|Ram Dmg * 2 |200 |
|Ram Bonus |30 |
I'm thinking the non survival score 230 = 290 - 50 - 10 comes from: 30% bonus for the 100 actual damage done, and then 2 score points for each point of damage. So ram damage is the same for rammer and rammee, and I think the multiplier for score has changed from 1.2 to 2 since the FAQ was written... each point of ram damage is worth 2 score points (as opposed to the 1 for 1 ratio on bullet damage), so for a single ram of 0.6 damage, you get 1.2 score points. --BenHorner

Read carefully, per ram you get 0.6 damage and 1.2 scoring 'bonus'. That is a factor 2. Totally you ram 100 damage and thus get a 200 scoring points. -- GrubbmGait

Cool, thanks, a little bad math on my part. In fact, I think I'll edit it out right now so it doesn't confuse anyone else. --BenHorner

Robo Home | Changes | Preferences | AllPages
Search: