886
Bot Tavern / F1 Alliance
« on: March 08, 2008, 11:16:15 PM »
Is it possible to change more than one memory location at a time?
Here's a basic model for a hunter/veggie/producer symbiosis:
def isVeg = 10
def hunter = 20
def supplier = 30
'I/o channel 1 contains whether this bot is a veggie, hunter or produces resources
cond
start
*.in1 .tie store
stop
cond
*.out1 .hunter =
start
-6 .shoot store
50 .sharenrg store
stop
cond
*.out1 .veggie =
start
20 .sharenrg store
stop
cond
*.out1 .supplier =
start
50 .mkslime store
30 .shareslime store
10 .mkshell store
50 .shareshell store
10 .mkpoison store
50 .sharepoison store
stop
end
It's a rough idea, but it may be a start.
Here's a basic model for a hunter/veggie/producer symbiosis:
def isVeg = 10
def hunter = 20
def supplier = 30
'I/o channel 1 contains whether this bot is a veggie, hunter or produces resources
cond
start
*.in1 .tie store
stop
cond
*.out1 .hunter =
start
-6 .shoot store
50 .sharenrg store
stop
cond
*.out1 .veggie =
start
20 .sharenrg store
stop
cond
*.out1 .supplier =
start
50 .mkslime store
30 .shareslime store
10 .mkshell store
50 .shareshell store
10 .mkpoison store
50 .sharepoison store
stop
end
It's a rough idea, but it may be a start.