Author Topic: Leechbot (F1)(Atutouato)(25.3.2013)  (Read 842 times)

Offline Atutouato

  • Bot Neophyte
  • *
  • Posts: 5
    • View Profile
Leechbot (F1)(Atutouato)(25.3.2013)
« on: March 25, 2013, 11:06:55 AM »
I made a new bot, Leechbot.
I don't know if it's a multibot, 'cause it kind of turns into one, but it may be an F1.
At the start, you look at Leechbot, and think it's stupid because it stands there, spinning around.
But if a bot starts attacking - or it gets near enough to a vegetable - then the action starts.
It attaches a tie to all in range, starts sucking energy, shell, and slime, and siphons waste out of its body.
Eventually, it reproduces dozens of times, and forms a blob like you can see in the picture. (The green ones are the Leechbots.)
Here's the code.  I hope you like it! :D
Code: [Select]
' Leechbot - My first F1/MB bot

'Gene 15 - the initialization gene
cond
*.robage 0 =
start
100 .stifftie store
stop

'Gene two - the narrow search gene
cond
*.eye3 *.eye7 !=
start
*.eye3 *.eye7 sub .aimsx store
stop

'Gene four - the wide search gene
cond
*.eye1 *.eye9 !=
start
*.eye1 *.eye9 sub .aimsx store
stop

'Gene three - the normal search gene
cond
*.eye2 *.eye8 !=
start
*.eye2 *.eye8 sub .aimsx store
stop

'Gene one - the very narrow search gene
cond
*.eye4 *.eye6 !=
start
*.eye4 *.eye6 sub .aimsx store
stop

'Gene five - the drift around gene
cond
*.vel 10 <
*.numties 0 =
start
10 *.vel sub .up store
stop

'Gene seven - the avoiding family gene
*.refeye 5 =
start
180 .aimsx store
stop


' Gene 14 - move forward
cond
  *.vel 30 <
  *.refeye 9 !=
start
  30 *.vel sub 2 div .up store
stop

'Gene six - the tie gene
*.eye5 40 >
*.numties 3 <
start
1 .tie store
stop

'Gene eight - the sucker gene
cond
*.multi 1 =
start
99 .sharenrg store
99 .shareslime store
99 .shareshell store
.sharewaste inc
stop

'Gene 12 - the energy sucker gene
cond
*.numties 0 >
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop

'Gene nine - the hacker gene
cond
*.trefeye *.myeye !=
start
.up .tieloc store
0 .tieval store
stop

' Gene 10 - tie to parent
cond
*.robage 0 =
start
.tie inc
stop

' Gene 11 - sever tie to parent
cond
*.robage 1 =
start
.deltie inc
stop

'Gene 13 - reproduce
cond
*.nrg 4000 >
*.eye5 30 <
start
50 .repro store
stop

end
« Last Edit: March 25, 2013, 12:32:35 PM by Atutouato »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Moderator
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
Re: Leechbot (F1)(Atutouato)(25.3.2013)
« Reply #1 on: March 25, 2013, 03:07:16 PM »
I see nothing wrong with qualifying robots that are (F1 or F2 or F3 or SS or SB) for the MB league that are MB.

p.s.

You are the first person I know that got DarwinBots to successfully run on Linux.
« Last Edit: March 25, 2013, 03:15:56 PM by Botsareus »

Offline Atutouato

  • Bot Neophyte
  • *
  • Posts: 5
    • View Profile
Re: Leechbot (F1)(Atutouato)(25.3.2013)
« Reply #2 on: March 25, 2013, 06:25:30 PM »
Thanks!
I just downloaded the installer, ran the registering dll instructions on the wiki, and ran Darwin2.45.01.exe w/ wine.
Also, according to the wiki (I'm not sure if it's correct), my bot isn't a MB because it doesn't have a head/body.  Just one big...  Thing.
My bot works with my other bot, Smarter Algae Follow, very well.  However, there is one problem that I can't seem to fix.  I just can't get the darn things to stop spinning and go away from the hive when they detach from it. :(  I have no idea how to fix it.  If somebody could take a look at my new code and see what's wrong, that would be great.