Darwinbots Forum

Bots and Simulations => Bot Tavern => Topic started by: Shen on April 23, 2005, 01:22:11 PM

Title: A cookie to the man who understands my new bot
Post by: Shen on April 23, 2005, 01:22:11 PM
Another shameless gloating post from me :)
 My new single gene bot (http://s9.invisionfree.com/DarwinBots_Forum/index.php?showtopic=417) kicks ass. It beats every bot Ive tested against which includes the F1/F2 league. Havnt tested against some of the very latest bots though, but I know it beats DIN2 and Spanish Conquistador.

Single gene you see, immune to virus attacks ;)
Title: A cookie to the man who understands my new bot
Post by: Zelos on April 23, 2005, 01:41:26 PM
man, thats a fat gene
Title: A cookie to the man who understands my new bot
Post by: PurpleYouko on April 23, 2005, 02:38:46 PM
Go Shen!

The little bugger carved his way right up the F1 league and is now #1.

I imagine it will do the same in the short bots league too.

Nice comeback dude  B)
Title: A cookie to the man who understands my new bot
Post by: Numsgil on April 23, 2005, 04:12:07 PM
Lol, the idea is to make it as incomprehensible as possible, heh?

I never get to hold the top bot spot for more than a few days  :ph43r:

Okay, it's on now!  I will make a bot that manages the top spot in F1, Multibot and Shortbot leagues  :D
Title: A cookie to the man who understands my new bot
Post by: Numsgil on April 23, 2005, 04:30:29 PM
Code: [Select]
' How does it work?
cond
start

'Feed and store body
100 *.nrg 1000 sub sgn 0 floor 500 *.body sub sgn 0 floor mult .strbody mult store
100 500 *.nrg sub sgn 0 floor .fdbody mult store

'shell and venom production
200 *.shell sub 0 floor 200 ceil 200 *.shell sub sgn abs .mkshell mult store
10 *.venom sub 0 floor 10 ceil *.venom 10 sub sgn abs .strvenom mult store

'tie codes
*.tiepres *51 *.tiepres sub sgn abs *.tiepres sgn mult .deltie mult store
*51 *.refeye sgn -1 mult 1 add *.refeye *.myeye sub sgn abs *.eye5 35 sub 0 floor sgn mult mult .tie mult store
*51 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tienum mult store
-1 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tieloc mult store
-1000 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tieval mult store
1 *.robage sgn 1 sub abs .tie mult store

'Venom lock code
.mkshell *.vloc sgn -1 mult 1 add .vloc mult store
-100 *.venval sgn 1 add .venval mult store

999 rnd 1 add *51 sgn -1 mult 1 add 51 mult store

'navigation
200 *.aim add *.refeye *.myeye sub sgn abs -1 mult 1 add .setaim mult store
*.maxvel *.vel sub 0 floor *.robage sgn *.refeye *.myeye sub sgn abs mult .up mult store
*.refxpos *.refypos angle *.robage sgn *.refeye *.myeye sub sgn abs *.eye5 sgn mult mult .setaim mult store
*.refveldx *.refeye *.myeye sub sgn abs *.eye5 sgn mult .dx mult store

*.refeye *.myeye sub sgn abs -1 mult 1 add 50 mult inc 0 *50 30 sub 0 floor sgn .refeye mult store
0 *50 30 sub 0 floor sgn 50 mult store

'shooting
*.refshell 1 sub 0 floor sgn 3 mult 5 sub *.refeye sgn mult 1 sub *.refeye *.myeye sub sgn abs *.eye5 35 sub 0 floor sgn mult .shoot mult store
*.shoot 3 add sgn 10 mult 0 floor *.refeye sgn 30 mult add *.refshell 1 sub 0 floor sgn 20 mult sub *.shoot sgn abs .shootval mult store

'reproduction
50 *.body 250 sub sgn 0 floor *.nrg 2000 sub sgn 0 floor *.eye5 30 sub 0 floor sgn -1 mult 1 add mult mult .repro mult store

'antiviral
*.thisgene -1 mult 3 add abs *.genes 1 sub sgn .delgene mult store
stop
end

I've taken the bot and broken it down into its parts and labeled the ones that I could figure out at first glance.
Title: A cookie to the man who understands my new bot
Post by: Shen on April 23, 2005, 04:46:13 PM
Pretty good nums, I was going to put the stores at the end and the gene and use the stack to make it even more confusing but I couldnt be bothered. You only made one mistake, inc is a store command as well ;) I also played with the idea of inserting it into other bots with a virus and deleteing all the other genes. Clones! But again, I couldnt be bothered :(

I dunno if you will manage to get a MB as top F1, they just have to much of a disadvantage in manouverbility.
Title: A cookie to the man who understands my new bot
Post by: Numsgil on April 23, 2005, 05:04:28 PM
There are a few mods to ties I'm gonna add.  Like a way to keep birth ties to harden and a way to spin while in a hard tie.  Should make Multibots much more competitive.
Title: A cookie to the man who understands my new bot
Post by: Shen on April 24, 2005, 12:00:09 AM
What MBs really need is:

Having *.multi detect multiple hard ties with like *.multi 2 =

Having birth memory instantly transfer rather than slowly through ties. This would let you determine which generation the bot was very easily.

And I think this might have been already implemented, havnt tested it for ages. Have MBs use their total body/slime/shell points when calculating damage. They are usually at an immediant disadvantage due to being forced to repro and so lose have there strength. A big bot should have a big bite!
Title: A cookie to the man who understands my new bot
Post by: Light on April 24, 2005, 07:01:25 AM
Nice bot, the real killer with it is the venom, using it to strip a bot of any shell, to leave it defenseless, nice idea.

Now that the limits on shell and slime have been removed and shots can be powered up, MB's have sort of lost some of the advantages they had  ;)
Title: A cookie to the man who understands my new bot
Post by: Endy on May 05, 2005, 04:16:05 AM
Cool Bot B)

SG's back with a venegance.

Endy :)