Author Topic: Alga Substantis (V)(Frankle)-18.12.06  (Read 3367 times)

Offline frankle

  • Bot Neophyte
  • *
  • Posts: 21
    • View Profile
Alga Substantis (V)(Frankle)-18.12.06
« on: December 17, 2006, 07:38:32 PM »
'This is my first bot.

'I wanted a veggy that would be prolific and highly variable in both size and population. I also wanted a
' veggy that wouldn't go cancerous very easily.

'It requires day and night cycles. I recommend a period of 500-1000 cycles. I've included a settings file to
'show the native environment.
' http://www.darwinbots.com/Forum/index.php?act=ST&f=26&t=1806&st=0

'Here it is:

'|----- Cut -----|

' Alga substantis I
'
' Vegetable
'
' This bot stores energy into its body
' during the day, and reproduces at
' night.

' If its daytime, and there's enough energy, build up the body
' run around a bit, and don't get too big
cond
  *.daytime 1 =
  *.nrg 5000 >
  *.body 10000 <
start
  1000 .strbody store
  45 rnd .aimdx store
  10 .up store
stop

' If its nighttime, and there's not enough energy to reproduce, pull some out of body.
cond
  *.body 500 >
  *.nrg 3500 <
  *.daytime 0 =
start
  1000 .fdbody store
stop

' if its nighttime, and there's enough energy, reproduce lots of little babies so that they have a chance of surviving until morning
cond
  *.nrg 3000 >
  *.daytime 0 =
start
  10 .repro store
  15 .aimdx store
stop

' run around randomly at night, keep away from the baddies.
cond
  *.daytime 0 =
start
  45 rnd .aimsx store
  10 .up store
stop

cond
  *.nrg 500 <
start
  100 .fdbody store
stop

' If a add/del mutation or virus is detected, commit suicide
cond
  *.dnalen 87 !=
  *.robage 0 !=
start
  1 .delgene store
stop
end
« Last Edit: December 19, 2006, 09:04:26 AM by Jez »