Darwinbots Forum

Bots and Simulations => Bestiary => F1 bots => Topic started by: bacillus on March 27, 2008, 01:25:48 AM

Title: Cocci Kaleido(F1)(bacillus)-27.3.08
Post by: bacillus on March 27, 2008, 01:25:48 AM
Code: [Select]
'Cocci Kaleido
'A bot with a huge eye amount
'Could be F2 valid, not sure if defense counts
'If it doesn't work, try deleting the comments
'
'###################
'# STEERING SYSTEM #
'###################
'these nine genes each correspond to an eye,
'setting it as the focus eye if the more inner
'eyes are 0. To resolve clashes, the right side
'is favoured.

cond
 *.eye1 0 !=
 *.eye2 0 =
 *.eye3 0 =
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 =
 *.eye8 0 =
 *.eye9 0 =
start
 -4 .focuseye store
stop

cond
 *.eye2 0 =
 *.eye3 0 =
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 =
 *.eye8 0 =
 *.eye9 0 !=
start
 4 .focuseye store
stop

cond
 *.eye2 0 !=
 *.eye3 0 =
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 =
 *.eye8 0 =
start
 -3 .focuseye store
stop

cond
 *.eye3 0 =
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 =
 *.eye8 0 !=
start
 3 .focuseye store
stop

cond
 *.eye3 0 !=
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 =
start
 -2 .focuseye store
stop

cond
 *.eye4 0 =
 *.eye5 0 =
 *.eye6 0 =
 *.eye7 0 !=
start
 2 .focuseye store
stop

cond
 *.eye4 0 !=
 *.eye5 0 =
 *.eye6 0 =
start
 -1 .focuseye store
stop

cond
 *.eye5 0 =
 *.eye6 0 !=
start
 1 .focuseye store
stop

cond
 *.eye5 0 !=
start
 0 .focuseye store
stop

'If you are my species, or no-one's there,
'look around.
cond
 *.eyef 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimsx store
stop

'You are not me, so I turn to face you.

cond
 *.eyef 0 !=
 *.refeye *.myeye !=
start
 *.refxpos *.refypos angle *.refvelsx add .setaim store
 3 .up store
stop

'####################
'# ANTIVIRUS SYSTEM #
'####################

cond
 *.mkvirus 0 !=
 *.nrg 100 >
start
 *.mkvirus .delgene store
 10 .mkslime store
stop

'################
'# BOT UPDATING #
'################

cond
start
 *.tiepres .deltie store
 *.nrg 3 div *.body sub dup .strbody store
 - .fdbody store
 .shoot store
stop

'###########
'# FEEDING #
'###########
'Eat normally

cond
 *.refeye *.myeye !=
 *.eye5 40 >
start
 *.nrg 10 div 4 floor 64 ceil .shootval store
 -6 .shoot store
 999 dec
stop

'You have shell, but no poison, so I'll switch
'my attack style.

cond
 *.refeye *.myeye !=
 *.eye5 40 >
 *.refpoison 0 =
 *.refshell 0 >
start
 -1 .shoot store
stop

'Waste disposal

cond
 *.waste 50 >
start
 *.waste .shootval store
 -4 .shoot store
stop

'##########
'# POISON #
'##########

cond
 *999 0 <=
 *.nrg 200 >
start
 10 .strvenom store
 .mkslime .vloc store
 32000 .venval store
 250 999 store
stop

cond
 *.refeye *.myeye !=
 *.refeye 0 !=
 *.eye5 40 >
 *.timer 0 <=
start
 *.venom .shootval store
 -3 .shoot store
stop

'################
'# REPRODUCTION #
'################

cond
 *.nrg 5000 >
start
 50 .repro store
stop
Title: Cocci Kaleido(F1)(bacillus)-27.3.08
Post by: Numsgil on March 27, 2008, 01:52:39 AM
Just a heads up.  You mentioned it, but thought I'd repeat it.  The comments might break it.  '# is a special hash tag that may or may not still be in use by the DNA parser.
Title: Cocci Kaleido(F1)(bacillus)-27.3.08
Post by: Moonfisher on March 27, 2008, 09:27:27 AM
Yeah, I've definately tryed bots that didn't work till I deleted the #'s, recently, so that's probably still the case.
If you want to be sure your lines don't interfere just use ''''''', although ---- or **** seems to work fine, but '''''' is what you'll find in the DNA while running your bot so it's a good way to make sure.
Title: Cocci Kaleido(F1)(bacillus)-27.3.08
Post by: bacillus on March 28, 2008, 07:43:44 PM
The bot sucks anyway.
I'm scrapping everything except the steering system, which works miracles, and thinking of making a bot that uses virus, tie body & nrg feeding shots and memory manipulation to cause as much damage as possible. How does Cornered Wolf sound?