Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: Endy on March 27, 2005, 10:07:13 PM

Title: Shootval?
Post by: Endy on March 27, 2005, 10:07:13 PM
Is there a command that would allow the bot to read any incomming shot's value? I was thinking that an identifier could be attached to a shot (-1,-6) in shootval, to identify the species a shot is comming from. I don't normally mess with this area too much so not really sure on the ref's we have here.

Endy B)
Title: Shootval?
Post by: Numsgil on March 27, 2005, 10:10:32 PM
I'm not sure.  This would be tricky.  You could use a shot to write to a variable in the target bot's memory that would tell it who you are.
Title: Shootval?
Post by: Endy on March 27, 2005, 10:41:52 PM
I was thinking that shflav could tell the place to check and then a sort of readback for a readback function would tell the shootval. Not sure of actual difficulty involved... :unsure:

Endy B)
Title: Shootval?
Post by: PurpleYouko on March 28, 2005, 09:31:52 AM
*.shup, *.shdn, *.shdx and *.shsx already return the flavor of a shot.
Title: Shootval?
Post by: PurpleYouko on March 28, 2005, 09:33:37 AM
Reading the species that fired the shot would be easy to program but I'm not sure how much good it would do.

After a few mutations, the species division becomes somewhat blurred but the name remains the same.