16
Bot Tavern / Advanced Multibot Project
« on: March 22, 2010, 06:34:54 PM »
Nice. That looks fairly easy to incorporate into the MB, which is good.
I just came up with these genes to exchange information between cells. I'm not sure if they work, but it's the general idea.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']'Genes for information exchange between cells.
'Define statements
def type 100
def tie1 101
def tie2 102
def tie3 103
def tie4 104
def tie5 105
def botid 125
'Info exchange genes
cond
*.tie1 0 =
*.multi 0 !=
start
*.tiepres .tie1 store
stop
cond
*.multi 0 !=
start
*.tie1 .readtie store
stop
cond
*.multi 0 !=
*.tin1 0 !=
*.tin1 *.botid !=
start
*.tin1 *.tout1 store
*.tin2 *.tout2 store
*.tin3 *.tout3 store
*.tin4 *.tout4 store
*.tin5 *.tout5 store
*.robage .lastsend store
stop
cond
*.robage *.lastsend 1 add store
start
0 *.tout1 store
0 *.tout2 store
0 *.tout3 store
0 *.tout4 store
0 *.tout5 store
stop
And the gene for processing it when it gets to its destination might look something like this.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
*.multi 0 =
*.tin 0 !=
*.tin1 *.botid =
*.type [bottype] =
start
'action
stop
I just came up with these genes to exchange information between cells. I'm not sure if they work, but it's the general idea.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']'Genes for information exchange between cells.
'Define statements
def type 100
def tie1 101
def tie2 102
def tie3 103
def tie4 104
def tie5 105
def botid 125
'Info exchange genes
cond
*.tie1 0 =
*.multi 0 !=
start
*.tiepres .tie1 store
stop
cond
*.multi 0 !=
start
*.tie1 .readtie store
stop
cond
*.multi 0 !=
*.tin1 0 !=
*.tin1 *.botid !=
start
*.tin1 *.tout1 store
*.tin2 *.tout2 store
*.tin3 *.tout3 store
*.tin4 *.tout4 store
*.tin5 *.tout5 store
*.robage .lastsend store
stop
cond
*.robage *.lastsend 1 add store
start
0 *.tout1 store
0 *.tout2 store
0 *.tout3 store
0 *.tout4 store
0 *.tout5 store
stop
And the gene for processing it when it gets to its destination might look something like this.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
*.multi 0 =
*.tin 0 !=
*.tin1 *.botid =
*.type [bottype] =
start
'action
stop