General > Bot Challenges

Write the best Nano-Bot (max DNA length of 32)

(1/2) > >>

PhiNotPi:
This is a straightforward challenge:  Write a bot which beats the other bots.

Rules:


* Use F1 rules/conditions to determine which species is superior.  Have your bot fight the previous bots.
* DNA length is determined by the Darwinbots program, and it should measure 32 or fewer.  (Important note: the end command is always included in this count, even if you did not write it as part of your DNA.)
Why 32?  I had to decide on a number, and I figured that 32 was a power of 2 which was about the right size.

To kick things off, here is my starting entry.   It is basically a highly-compacted version of Animal_Minimalis.  It measures 30 base-pairs in length.


--- Code: ---start
 *.eye5 0 >
 *.refeye *.myeye != and
 *.refveldx .dx store
 -6 .shoot store
 *.refvelup 30 add .up store
 not
 314 rnd .aimdx store
 *.nrg 20000 >
 .repro inc
end
--- End code ---

Peter:
Nice idea, and doesn't take too much effort. :P


--- Code: ---start
 *.refshell 1 <
*.refage 5 > and
 *.refveldx .dx store
 *.refvelup 15 add .up store
 -6 .shoot store
 .mkshell inc
 not
 100 .aimdx store
 *.nrg 5000 >
 .repro inc
end
--- End code ---
31 bp

PhiNotPi:
Your bot was actually pretty good.  It seems to beat anything which doesn't have shell.

Here is my new version, which is a tie-feeder.  It almost always beats the other two entries, with the only losses occurring because the two opponents randomly spawned too far from each other.


--- Code: ---start
 .mkshell inc
 32000 .sharenrg store
 15 .up store
 *.numties 0 =
 *.refshoot *.myshoot !=
 *.refeye *.myeye != or and
 .tie inc
 not
 100 .aimdx store
 *.nrg 5000 >
 .repro inc
end
--- End code ---
32 bp

Peter:
Is that the right code? Both bots beat it when I select F1 conditions.

PhiNotPi:
Let me check.....

EDIT: Can you describe to me what "losing" looks like?  Are they losing in combat, are they losing because one starves to death faster, etc?  Also, what version of DB are you using?

Navigation

[0] Message Index

[#] Next page

Go to full version