Author Topic: EyeOfTheBeholder(F1)(MacadamiaNuts)-25.10.14  (Read 3039 times)

Offline MacadamiaNuts

  • Bot Destroyer
  • ***
  • Posts: 273
    • View Profile
EyeOfTheBeholder(F1)(MacadamiaNuts)-25.10.14
« on: October 25, 2014, 08:24:22 AM »
I never really saw it take a big advantage out of eye conspec stealthing, and it's not very resilient to cost spikes, but it does ok.

Code: [Select]
'name: EyeOfTheBeholder
'description: Eye See What You Did There!

cond
*.robage 1 =
start
99 .out8 store
460 .eye9width store
520 .eye9dir store
460 .eye1width store
-520 .eye1dir store
.shoot .ploc store
-2 .pval store
stop

' Lotsa stuff
start
200 rnd 100 sub .aimdx *.eye5 sgn 1 sub abs mult store
80 *.eye6 *.eye7 2 mult add *.eye8 3 mult add *.eye1 add *.eye4 *.eye3 2 mult add *.eye2 3 mult add *.eye9 add sub sgn mult .aimdx store
614 .aimdx *.in8 99 sub sgn abs 1 sub abs mult *.refbody *.body sub sgn 0 floor mult store
*.refveldx .dx *.eye5 sgn mult *.in8 99 sub sgn abs mult store
*.maxvel *.eye5 sgn 1 sub 20 mult add .up *.eye5 85 sub sgn 0 ceil abs mult store
*.eye5 5 div 10 ceil 1 floor .shootval store
-1 5 1 rnd mult sub .shoot *.eye5 30 sub sgn 0 floor mult *.in8 99 sub sgn abs mult *.refage sgn mult store
*.nrg 250 div .strpoison 100 *.poison sub sgn 0 floor mult *.hit mult store
*.nrg 250 div .mkshell 200 *.shell sub sgn 0 floor mult *.hit mult store
*.tiepres .deltie store
*.refxpos *.refypos angle .setaim *.in8 99 sub sgn abs mult *.refnrg sgn mult 15 *.refeye sub sgn 0 floor mult store
*.nrg 5 div .strbody *.nrg 12 div *.body sub sgn 0 floor mult store
*.body 5 div .fdbody *.body 10 mult *.nrg sub sgn 0 floor mult store
*.shang .aimshoot *.shang sgn mult store
*.waste .shootval *.waste 100 sub sgn 0 floor mult store
-4 .shoot *.waste 50 sub sgn 0 floor mult store
50 .repro *.nrg 25000 sub sgn 0 floor mult store
314 .aimdx *.nrg 25000 sub sgn 0 floor mult store
0 .shang store
stop

cond
*.in1 0 >
start
*.in1 .out1 store
*.in2 .out2 store
*.in3 .out3 store
*.in4 .out4 store
*.in5 .out5 store
*.in6 .out6 store
*.in7 .out7 store
stop

' Eeeeeee...
cond
*.refeye 16 >
*.ypos 500 >
*.in8 99 !=
*.robage 1 >
*.refage 1 >
*.genes 5 >
*.nrg 150 >
*.body 10 >
start
*.genes .delgene *.refeye *.myeye sub 0 ceil abs sgn mult store
*.maxvel -1 mult .up store
5 .repro store
stop

' Regrow eyes and mess with other bots
cond
*.nrg 100 >
*.pleas 10 >
start
*.eye5
*.thisgene .mkvirus store
1 .vshoot store
*.thisgene .delgene *.thisgene 5 ceil sgn 1 sub abs mult store
stop

' Disposable eyes
start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop

start
*.eye5
stop
« Last Edit: October 25, 2014, 08:46:56 AM by MacadamiaNuts »
Sometimes you win, and sometimes you lose...

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: EyeOfTheBeholder(F1)(MacadamiaNuts)-25.10.14
« Reply #1 on: October 27, 2014, 02:57:23 PM »
Good lord I wish you explained your code more 0.0
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
Re: EyeOfTheBeholder(F1)(MacadamiaNuts)-25.10.14
« Reply #2 on: October 28, 2014, 08:47:14 AM »
You don't need to use math for logic any more after the inline conditions where introduced. Makes things much easier and readable.
And if you want to fool conspecs you should also adjust your dna length.
You could have 4 genes with 1 command, and one with 5 and one with 10 and one with 20 (asf...) this would give you easy (and fast) access to all values from 0 to 39 (or more). (Just make sure the bot doesn't delete itself from meeting a very tiny bot :P)
I think Spinner actually does this, but also think I managed to break it at some point :P (I think it was trying to adapt to the size of Alga_Minimalis)

Also keep in mind the conspec someone cam up with in a discussion (Can't remember who)
Fixed value in .out1, and random value in .out2, then check if *.in1 is the same as your value and that *.in2 is not.
If the bots form one random key at birth it'll mean you need to see that 2 of your opponents have different values in one of their outs and do the same.

Also there's also that one memory location you can check with your eye (So you need to check where the opponent is pointing it, then see what value the opponent has there and copy it. And keep in mind the opponent may have several values in different locations and cycle through them, so it may take a while before you manage to steal all the values.

Generally fooling conspec is lots of fun, but often takes too long to take effect unless up against a very simple conspec.

Offline MacadamiaNuts

  • Bot Destroyer
  • ***
  • Posts: 273
    • View Profile
Re: EyeOfTheBeholder(F1)(MacadamiaNuts)-25.10.14
« Reply #3 on: October 28, 2014, 03:50:35 PM »
You don't need to use math for logic any more after the inline conditions where introduced. Makes things much easier and readable.

I knew I shouldn't have skipped classes in 2009.
Sometimes you win, and sometimes you lose...