General > Bot Challenges

DNA Obfuscation Contest

<< < (3/3)

MysticalDumpling:
As I am the only contestant, looks like I won!  8)

PhiNotPi:
Here is my current entry, although it is pretty short.  Just let it loose in an area with some veggies.  (tested in 2.46.02beta)


--- Code: ---start
  ++ *.refeye = *.eye5 = .setaim 300 *.refvelsx .tieval 6 or
 store
 not &
 store
 *.refvelup
 *.eyef dup sgn 50 mult *.eyef >
 add dup sgn store -
 not 7 and store
 1000 mult *.nrg <
 store
end
--- End code ---

MysticalDumpling:
Shoot. I like winning by default. However, mine kicks their butts in a balanced sim.

PhiNotPi:
Try and figure out how my bot works.  It's probably not that hard, since it's pretty short.  I did use some different techniques than you.

Here is my attempt at understanding your bot's DNA:


--- Code: ---cond
start
 .out1 inc
stop

cond
 *.nrg 500 >
start
 5 .repro store
stop

cond
 *.robage 1 =
start
 .deltie inc
 614 .setaim store
stop

cond
 *.eye5 0 >  'eyef and eye5 are the same since focuseye has not changed
start
 *.refxpos *.refypos angle .setaim store
stop

cond
 *.eye5 0 =
start
 50 .sx store
stop

cond
 *.in1 0 >
 *.eye5 0 > and
start
 *.refxpos *.refypos dist -- abs .up store
stop

cond
 *.eye5 9 >  'an error in your code made the *.refeye *.myeye part go unused
start
 .shoot dec
stop
end

--- End code ---

I did find one error in your code, which is that 'and' should be 'mult' in the second-to-last line.  Overall, you did a pretty good job.

spike43884:
OK. if you want to find a judge to de-confuse the code (to judge who's was hardest)
Go to shadowgod2.

If you don't believe he is the best
Look at Aggressive dwarfs, and try to understand and simplify the code without changing the functionality. He did this, allowing mk2 to be made

Navigation

[0] Message Index

[*] Previous page

Go to full version