Author Topic: What can be used as conspec recognition?  (Read 2562 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
What can be used as conspec recognition?
« on: September 09, 2013, 08:38:55 AM »
I'm trying to find more than just "*.refeye *.myeye !=".
The internet is corrupt and controlled by criminally minded people.

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Re: What can be used as conspec recognition?
« Reply #1 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.

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Re: What can be used as conspec recognition?
« Reply #2 on: September 09, 2013, 10:04:05 AM »
Ok.
« Last Edit: September 09, 2013, 10:07:29 AM by Testlund »
The internet is corrupt and controlled by criminally minded people.