Bots and Simulations > Bot Tavern

Multibot Vegetable

<< < (3/15) > >>

Numsgil:
2.4 doesn't lock bots when the ties harden, so they can still rotate.

Just FYI

Boris of Quirm:
Once I have a working version, I'll compare how they react between different versions of the program.

PurpleYouko:
Ties take 20 cycles to harden.

I have been giving some thought to a command that keeps them flexible though

Numsgil:
Tie physics is at the frontier of the simulation.  Meaning we're still working out various specifics with them.

Boris of Quirm:
Here is the code for version 1.


--- Code: ---'Plant ver_1.0
'(Multi-veggie-bot)
'
'The bot has three cell types - a stem, a leaf and a flower.
'
'A stem is the only part of the bot that can reproduce. It can

by tied to a maximum of 4 other cells.
'
'A leaf is denoted by spinning to the left (anti-clockwise).
'
'A flower is denoted by spinning to the right (clockwise).


'Declare plant specific variables

'Allocate Address 50 as the identifier for cell type
def type 50

'Allocate Address 51 as a count for the number of times a stem

cell has turned
def turn 51

'End of Declarations


'Gene 1 - Allocate cell type at birth
'
'NB - Value of type can be:-
'
'1 - Stem
'2 - Leaf
'3 - Flower

cond
*.type 1 <
start
2 rnd 1 add .type store
stop

'End of Gene 1


'Gene 2 - I am a leaf
'
'Show I am a leaf by spinning to the left

cond
*.type 2 =
start
10 .aimsx store
stop

'End of Gene 2


'Gene 3 - I am a flower
'
'Show I am a flower by spinning to the right

cond
*.type 3 =
start
10 .aimdx store
stop

'End of Gene 3


'Gene 4 - I am a stem part 1
'
'I am a stem.
'I have enough energy
'I can still turn
'I can't see anything
'
'As a result I will reproduce

cond
*.type 1 =
*.nrg 10000 >
*.turn 8 <
*.numties 4 <
*.eye5 40 <
start
20 .repro store
1 .tie store
stop

'End of Gene 4


'Gene 5 - I am a stem part 2
'
'I am a stem.
'I have enough energy
'I can still turn
'I can see something
'
'As a result I will just turn

cond
*.type 1 =
*.nrg 10000 >
*.turn 8 <
*.numties 4 <
*.eye5 40 >
start
314 .aimsx store
.turn inc
stop

'End of Gene 5


end
--- End code ---

I have only tested this on it's own, so it hasn't faced predators yet.

When a new cell is born it chooses what type it is.  This means that when you start the test then it is likely that two thirds of the cells may be leaves and flowers and not grow at all.  This will be addressed in later version, so not worried about this for now.

The cells that are stems do start growing as expected, but ties aren't working properly yet.  So although you can see a cluster of cell that has leaves or flowers on the outside, you can't actually see how the 'plant' has grown as the ties are missing, but at least this proves that the cell typing process works!  I am currently working on this and hope to have a solution by the end of the day.

I will keep you posted as I progress.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version