Darwinbots Forum

Bots and Simulations => Bot Tavern => Topic started by: Testlund on September 09, 2013, 08:38:55 AM

Title: What can be used as conspec recognition?
Post by: Testlund on September 09, 2013, 08:38:55 AM
I'm trying to find more than just "*.refeye *.myeye !=".
Title: Re: What can be used as conspec recognition?
Post by: Panda on September 09, 2013, 09:19:23 AM
Well, you can use any other *.ref---- *.my---- !=
Erm, you can also do multi step ones as well: both of the bots outputting a number and then in a second out outputting the sum of your and their number.
E.g.

Code: [Select]
def mynum *whatever safe location*

cond
*.robage 0 =
start
16000 32000 rnd sub .mynum store
stop

start
*.mynum .out1 store
*.mynum *.in1 add .out2 store
stop

cond
*.in2 *.mynum *.in1 add !=
start
'FIGHT
stop

I think this only works if they both see each other, though, but I'm sure you can think of another way around it.


There's plenty of others as well, checking whether they have the same number of genes as you, I can't remember how exactly to do that but...
You can fire info shots at the other before attacking and then output the value at which the shot came in at.
Title: Re: What can be used as conspec recognition?
Post by: Testlund on September 09, 2013, 10:04:05 AM
Ok.