Bots and Simulations > Evolution and Internet Sharing Sims
Idea: Evolving puppeteer genes
gymsum:
ok got something for you
cond
*.robage 32000 sub 2 mod 1 =
start
....push a variable into a sys var at location
stop
cond
*.robage 32000 sub 3 mod 1 =
start
...read from the location in 1st gene
stop
cond
*.robage mod 1 =
start
..push something into another location, such as tout1, or multi, or whatever
stop
This will let your multibots tie communicate between veggies. Every cycle store say *40 into tout1. Everyother cycle another bot writes to 40. Every three cycles the bot reads from tin1. That gives something for what you want. It could be used so a bot stores something in the veggie, another makes it shoot, and another makes it turn by waht bot a said or read.
Peksa:
I think that mod for negative values returns negative. Ie. -23 5 mod would be -3.
Numsgil:
--- Quote from: Peksa ---I think that mod for negative values returns negative. Ie. -23 5 mod would be -3.
--- End quote ---
I always get math modulus and the programming one confused. Someone should double check and then update the wiki page on mod.
gymsum:
not sure about negative modulous, is there an absolute value function? That would remove any problems.
Numsgil:
Yes, the command "abs" takes the absolute value of the number on the top of the stack.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version