Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Atutouato

Pages: [1]
1
Short bots / Smarter Algae Follow (F1)(Atutouato)(25.3.2013)
« on: March 25, 2013, 06:32:03 PM »
My new vegetable bot!
It clumps in groups.  It's very nice.
It works well w/ my other bot, Leechbot, very well, because if you put one Leechbot into a SAF group, then it will attach to a lot of SAFs, reproduce, and repeat the cycle.
Here's the code:
Code: [Select]
' Smarter Algae verson Follow!
' Kind of a multibot, tries to protect itself from ties by bonding to all its family...
' Kind of wimpy, too.
' This version tries to meet with other members of its species.
cond
  *.refeye *.myeye =
start
  .tie inc
stop

cond
  *.robage 0 =
start
  .tie inc
  100 .stifftie store
stop

cond
  *.robage 1 =
start
  .deltie inc
stop

cond
start
  *.xpos *.ypos angle .setaim store
  20 .up store
stop

cond
  *.nrg 4000 >
  *.eye5 30 <
start
  50 .repro store
stop

end

2
F1 bots / 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

3
Newbie / I need some help
« on: March 24, 2013, 03:38:54 PM »
I'm pretty new to DarwinBots, and I need some help.
I made a pretty good (in my opinion) bot called LeechBot, but when I load it into DarwinBots, it interprets its genes as one big comment!
I'm running this on Ubuntu Linux, and I've done all the instructions for installing it in Linux.
The weird thing is, pre-packaged bots (like the ones in the tutorial zip I downloaded) work fine.
I've tried everything, but nothing works.
Please help!
P.S. Please make comments on my code to help make it better if you can, please.  Thanks!  :D

Pages: [1]