Bots and Simulations > DNA - General
About Conspec recognition
abyaly:
Any kind of individual bot recognition could have interesting results. I wonder if holding a grudge would be a survival trait.
Numsgil:
I would certainly imagine so. It would be a very good way to guard against cannibals without becoming one yourself.
Jez:
Yay, another refvar!
*.howmanyofmyfriendshaveyoukilled
Seriously though, good idea.
abyaly:
This is my cannibot ^^
Brothers and parents are conspecs, but distant cousins and great-grandparents might not be.
Someone once posted about a sim where all their bots evolved to look in the same direction, because any bot who ended up looking in a different one got killed off. Any cannibot that attacked the ones looking in the same direction reduced the number of bots looking in the same direction, so it was selected against.
This is based on that idea.
--- Code: ---'Attacks conspecs, but only the ones who are more distant relatives
'The theory is that a cannibot who also attacks his close relatives
'wont have anyone to protect them against them against their cousins
cond
*.robage 0 =
start
'the value initiallystored in 971 determines how well he gets along with his family
'the higher the number, the more distant the relatives need to be in order to get attacked
50 971 store
.delgene inc
stop
cond
*.robage 0 =
start
971 .memloc store
stop
cond
*.robage 2 =
start
*971 2 rnd add 1 sub 971 store
stop
cond
*.eye5 0 =
*.memval *971 %= or
start
5 .up store
314 rnd .aimdx store
stop
cond
*.eye5 0 >
*.eye5 40 <=
*.memval *971 !%=
start
*.refvelup 10 add .up store
*.refveldx .dx store
stop
cond
*.eye5 40 >
*.memval *971 !%=
start
-6 .shoot store
*.refvelup .up store
stop
cond
*.nrg 10000 >
*.robage 100 >
start
30 .repro store
stop
--- End code ---
Numsgil:
I had a similar idea but never made a bot for it.
Looks interesting.
Navigation
[0] Message Index
[*] Previous page
Go to full version