Author Topic: New ID system  (Read 1481 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
New ID system
« on: March 07, 2005, 01:29:37 AM »
I'm not real sure if even Nums knows this, but .thisgene when viewed by an opponent, actually shows the last active gene in the genome.

Once I realized this it was simple to make an ID system based on it. For same species recognition must have the same number of genes and same last active gene. Fortunately this worked well with Nums' idea of a constantly active viral defense at the end. Even if this value is discovered by another bot it requires constant storing in-order to maintain the deception. A further advantage is that the enemy would be hindered in effectively defending against viruses.

cond
*.robage 0 =
start
.thisgene .memloc store
stop

cond
*.eye5 50 >
*.memval *.genes !=
' must be both active and same number as last gene
start
-1 .shoot store
stop

cond
start
' little constant viral defense gene doubles as ID gene
*.genes .delgene
*.thisgene *.genes sub dup div
mult *.robage sgn mult store
.genes inc
stop
end


Endy ;)
« Last Edit: March 07, 2005, 01:33:16 AM by Endy »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7716
    • View Profile
New ID system
« Reply #1 on: March 07, 2005, 01:36:04 AM »
Oh wow, that is pretty cool.

I hadn't really figured out a good use for .thisgene other than for viral stuff.

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
New ID system
« Reply #2 on: March 07, 2005, 01:54:33 AM »
Glad you like it. :D

Just promise me it won't get changed. I've [you]finally[/you] managed to beat Helios with it.

Edit: Oops, new balanced shots allows any version of Din to beat Helios, new code just helps out a little.

Endy ;)
« Last Edit: March 11, 2005, 04:39:13 PM by Endy »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7716
    • View Profile
New ID system
« Reply #3 on: March 07, 2005, 02:15:35 AM »
It's such a simple piece of code I can't imagine changing it.  Even with the other uses you found for it it's still not overpowered.

I'll probably go through and eliminate the tie activation of delgene.  I was going to get rid of delgene entirely but since I think you've actually found a use for it in your other post...

Offline Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
New ID system
« Reply #4 on: March 07, 2005, 02:50:27 AM »
The code might not get changed but Helios certainly will  :D

but yeah cool idea
« Last Edit: March 07, 2005, 02:53:37 AM by Light »