Code center > Darwinbots Program Source Code
My virsion for 2.36.2 Get it now!!!
PurpleYouko:
--- Quote ---Works fine for now.....
--- End quote ---
Didn't say it wouldn't work to some dgree.
To be specific about what does not work in your code..
"Change variable with variable" in the mutations window does not work now You commented out the line
--- Code: ---a = a + vartovar(n, x, DNAfrom, DNAto)
--- End code ---
which activates the "vartovar" procedure.
"Introduce a new variable" does not work now because you commented out the line
--- Code: ---Newvars(n)
--- End code ---
which activates it.
If you can produce a better mutation this way then be my guest. The rest of us prefer code that actually does something.
Numsgil:
Bots, I know what you were trying to do with your timer code, but the mutations module is NOT what's slowing the program down. The senses module is where alot of slowdown occurs. As is the collisions routine. If you want to speed up the program you need to get yourself a profiler.
The way your timer code was written it would exit the code if it had spent 10 seconds in any single runthrough of that function. NONE of those functions had better take even a single second.
I understand sort-of what you're trying to do with your first change, but I don't understand what you're accomplishing that PY's sliders can't.
And interestingly enough you didn't even touch the function that the rate of change of mutations goes to. Isn't that what your main complaint was against?
If you'd really like to join the programming team, you need to sort of outline what you want to work on so we don't step on each other's toes, so to speak. PY and I communicate fairly regularly about what we're working on.
Navigation
[0] Message Index
[*] Previous page
Go to full version