Darwinbots Forum

Bots and Simulations => Bestiary => Short bots => Topic started by: Commander Keen on April 30, 2008, 09:14:36 PM

Title: Cockroach v1 (F1)(Commander Keen)(01-05-2008)
Post by: Commander Keen on April 30, 2008, 09:14:36 PM
This bot is annoying!

The virus makes bots kill themselves firing an uber-virus. This affects veggies as well, unfortunately.

It needs to spread out more, and should probably be adjusted to not kill veggies. Also, older versions reproduced at 1000 energy, I found they died a lot, so I upped it to 2000. They still die a lot, but that's when they suicide due to being infected with the virus, rather than accidentally killing themselves by other means...

Code: [Select]
' Cockroach version 1 by Commander Keen

' Set conspec
cond
*.robage 0 =
start
*.dnalen 50 store
stop

' Reproduce
cond
*.nrg 2000 >
start
50 .repro store
.strbody inc
stop

' Viral gene, causes uber-virus suicide
cond
start
*341 335 store
*310 *336 *50 sub abs sgn mult 1 add 338 store
stop

' Main gene
cond
start
*.eye5 .tie store
99 .sharenrg store
.sharewaste inc
50 .aimdx store
1 .vshoot store
stop
Title: Re: Cockroach v1 (F1)(Commander Keen)(01-05-2008)
Post by: Botsareus on May 02, 2014, 02:41:31 PM
Moving to SB.