Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Ulciscor on June 10, 2005, 07:58:08 PM

Title: Energy shots
Post by: Ulciscor on June 10, 2005, 07:58:08 PM
I'm just wondering about energy shots. I know a -2 value in .shoot makes an energy shot but does the value stored in shootval dictate the energy in the shot? And does it obey the log2(shootval) rule on Wikipedia? And if so is there a way I can go backwards in the dna from the energy required in the shot to the value to be stored in shootval?
Title: Energy shots
Post by: Numsgil on June 10, 2005, 08:02:17 PM
For -2 shots the amount sent is just what you put in shootval.  Not logarithmic, but one to one.

There is also some default value for if no shootval is defined.
Title: Energy shots
Post by: Ulciscor on June 10, 2005, 08:05:09 PM
Well I must be doing something wrong then. Because I have:

     -2 .shoot store
     *.in1 .shootval store

and there seems to be no appreciable decrease in the bot's energy.
Title: Energy shots
Post by: Numsgil on June 11, 2005, 01:46:43 AM
There might be a bug with the code (I rewrote all the routines not too long back).