Bots and Simulations > DNA - General

Dividers

(1/2) > >>

spork22:
It would be cool if there was a bot that gained a lot of energy and became really big. When it reaches a certain huge size, and when a threat is detected (or food) it reproduces into thousands of little ones, which attack or eat the target. When they're done, they eat each other until it's back into one big bot.

Numsgil:
The hard part is saving state to remember that you're in a "divide" phase.  I think racial memory works, so that's probably how you'd have to do it.

Botsareus:

--- Code: ---'Perfect Bot for evolution
'FirstBot is the official name

'/*****proper reproduction 1

cond
  *.nrg
  20000
  >
start
  50
  .repro
  store
  'if time to reproduce store it
  1
  972
  store
stop

cond
  '/after robot reproduces it reproduces more until energy less then 3000
  *972
  1
  =
start
  50
  .repro
  store
stop

'***** 2

cond
  *.nrg
  3000
  <
start
  0
  972
  store
stop

'\*****very simple find food method 3

cond
start
 -1
  .shoot
  store
  10
  .up
  store
stop
end

--- End code ---

Have fun!  ;)

spork22:
Nice. It could probably use a better turning method though..

spork22:
Unless that's just a base bot. Because it doesn't turn at all

Navigation

[0] Message Index

[#] Next page

Go to full version