Bots and Simulations > DNA - General
my tryouts. Help plz
Welwordion:
if you use .aimsx and then .aimdx does that not waste quite some energy?
turning 30 right only to turn 50 left?
note:I added an question about inc above
Ulciscor:
Nope, inc increases a location by 1.
--- Quote ---inc - Increments the value stored in a given memory cell by one. The memory location is defined by the top number on the stack which is then deleted.
Syntax - (330 inc) will increment the value stored in memory location 330 (.tie)
--- End quote ---
Numsgil:
I beleive there may be a command to do what you're asking. I'd have to double check to see if I removed it or not.
Endy:
I think that's addstore.
2 30 addstore equivalent to *30 2 add 30 store
Welwordion:
ok I posted this already in multibots, but without finding the problem I can not make any progress :/.
So its about the last gene why does it not make the veggie move?
cond
*.numties 0 =
*.multi 0 =
*.eye4 *.eye5 > or
*.eye3 *.eye5 > or
*.eye2 *.eye5 > or
*.eye1 *.eye5 >
start
*.eye1 3 mult *.eye2 4 mult add *.eye3 5 mult add *.eye4 6 mult add 10 div
.aimsx store
stop
cond
*.numties 0 =
*.multi 0 =
*.eye6 *.eye5 > or
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 >
start
*.eye9 3 mult *.eye8 4 mult add *.eye7 5 mult add *.eye6 6 mult add 10 div
.aimdx store
stop
cond
*.vel 30 <
*.multi 0 =
*.numties 0 =
start
30 *.vel sub 2 div .up store
stop
cond
*.eye5 50 >
*.refeye 0 =
*.numties 0 =
*.multi 0 =
start
20 .tie store
stop
cond
*.multi 1 =
*.numties 0 =
start
.dn .tieloc store
20 .tieval store
20 .tienum store
stop
end
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version