Author Topic: Animal Multi(MB)(Peter)  (Read 4877 times)

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Animal Multi(MB)(Peter)
« on: September 09, 2008, 11:06:58 AM »
This bot was made for the multibot tutorial.
multibot wiki
Code: [Select]
'Animal Multi
'made by Peter

def head 50

'Gene 1 Food Finder
cond
*.eye5 0 >
*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

'Gene 2 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
'*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
-1 .shoot store
*.refvelup .up store
stop

'Gene 3 Avoiding Family
cond
*.multi 1 =
*.head 0 !=
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop

'Gene 4 Duplicate
cond
*.numties 0 =
*.robage 0 !=
start
50 .repro store
.head inc
stop

'Gene 5 Recombine
cond
*.robage 0 =
start
.tie inc
stop

'Gene 6 Splits.
cond
*.nrg 30000 >
start
.deltie inc
stop

'Gene 7 Multibot control center
cond
*.multi 1 = or
start
'*.eye5 .tout1 store
50 .sharenrg store
1 .fixlen store
100 .stifftie store
628 .fixang store
*.aimright .tout1 store
stop

'Gene 8 Body follows
cond
*.head 0 =
start
*.tiepres .readtie store
*.tin1 .aimright store
stop

end
« Last Edit: May 02, 2014, 03:45:17 PM by Botsareus »
Oh my god, who the hell cares.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Animal Multi(MB)(Peter)
« Reply #1 on: September 30, 2008, 07:41:29 PM »
A diatom, how interesting. However, I noticed that the code becomes a bit unstable when the animal splits.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Animal Multi(MB)(Peter)
« Reply #2 on: October 01, 2008, 04:20:54 AM »
Quote from: bacillus
A diatom, how interesting. However, I noticed that the code becomes a bit unstable when the animal splits.
What do you mean?
Oh my god, who the hell cares.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Animal Multi(MB)(Peter)
« Reply #3 on: October 01, 2008, 06:24:19 PM »
You mentioned in the wiki the bot becomes useless for a while when a tie hardens; I ran Animal Multi and saw that sometimes they would permanently freeze up, or fail to produce a second half.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Animal Multi(MB)(Peter)
« Reply #4 on: October 02, 2008, 03:16:29 AM »
Quote from: bacillus
You mentioned in the wiki the bot becomes useless for a while when a tie hardens; I ran Animal Multi and saw that sometimes they would permanently freeze up, or fail to produce a second half.
It was meant as a really simple bot. The only reason I can find it isn't reproducing is that it was blocked by something. Or it has already tied to something.

And the stuck thingy is possible then when the bot can't reproduce and therefore do nothing at all becouse there is a ''*.multi 1 ='' condition.
Oh my god, who the hell cares.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Animal Multi(MB)(Peter)
« Reply #5 on: October 02, 2008, 06:18:53 PM »
Been there, I had the problem with Tribolis that if it tried to reproduce while surrounded by enemies/food (often one and the same), the head would turn into a body bit and then not be able to reproduce.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline SlyStalker

  • Bot Destroyer
  • ***
  • Posts: 132
  • nomnomnomnom
    • View Profile
Re: Animal Multi(MB)(Peter)
« Reply #6 on: March 05, 2013, 02:36:51 AM »
Hmm... basic but interesting bot... i just dont get how the partnership between the two bots is beneficial though. i mean, the guy on the end being dragged around should act as a defensive turret or something, not just dead weight. also, maybe the guy on the end should share some energy with the 'motor' bot when it is low on nrg or something. other than that, well done!
Knowledge is knowing that a tomato is a fruit; Wisdom is not putting it in a fruit salad.