Darwinbots Forum

Code center => Bugs and fixes => Topic started by: MacadamiaNuts on January 23, 2007, 07:23:09 PM

Title: Bot with huge shooting range
Post by: MacadamiaNuts on January 23, 2007, 07:23:09 PM
I'm sorry I haven't got the time to test it with the last buddy drop.

One of my zerobots found a way to somehow shoot 4x ranged shots.

That seems weird. Or I missed something about .shootval?

I saved the bot and reran it and it happened again. Funny thing is it wasn't selected for evolution.

[attachment=545:attachment]
Title: Bot with huge shooting range
Post by: EricL on January 23, 2007, 09:04:57 PM
Values in .shootval increase the range of -1 and -6 shots by a factor of log(abs(.shootval) / 2) / log(2).

The few bots I looked at in your sim are storing -1239 into .shootval.  log(1239/2) /log(2) ~= 9.27.

You bot's shots are lasting 9X longer than normal.  Since you have no shot cost in the sim, bot's don't get penialized for large .shootval values.

By Design.
Title: Bot with huge shooting range
Post by: MacadamiaNuts on January 24, 2007, 11:20:45 AM
Ok, thank you.

I'll remind that the next time I hand code a bot. ;P