Code center > Suggestions
Nested Conditions
shvarz:
Well, that's how real life works. About two centuries ago it's been said that "nature is scarce in innovation and generous in variation", and it still holds true today. When something works, nature tries all possible variations.
It is silly to introduce a whole new system just to make it easier for us to create bots. It can easily be replaced by a tool that converts some more sohisticated programming langauge into "DNA language". If something is not possible to do, then introduce it. But if it's just "not convinient", then I say: "Suck it up"
Numsgil:
I'm going to have to disagree on this point.
I can understand your position mind you, I just don't agree with it. In my mind, the more complex the tools, the more complex the behaviors we can expect to see from the bots. There's nothing inherant about complex systems that demand only the simplest toolset. Economics is a good example. The forces involved in economics are by no means simple. They are as complex as the human psyche.
I do think a good question to consider is: would this hurt or help evolution, or neither? I think mutations that can disable code (alot of code) downstream is potentially problematic. I'm not sure.
I'll keep thinking on it.
MrMound:
if nrg > 4000
if age > 2000
'do stuff for age > 2000 and nrg > 4000
else
'do stuff for age <= 2000 and nrg > 4000
end if
I am not very good with the dna code.what does this do?
shvarz:
That's what we have in version 2.4. Nums does not like it for some reason (unknown to me).
To me it seems like even the system we have in 2.37 is nice:
if nrg > 4000
if age > 2000
'do stuff for age > 2000 and nrg > 4000
if nrg < 4000
if age < 2000
'do stuff for age <= 2000 and nrg < 4000
Of course, what Nums wants is a small region of DNA that controls large chunks of DNA, which can have many different conditions and genes. I can understand it to some degree.
PurpleYouko:
--- Quote ---if nrg > 4000
if age > 2000
'do stuff for age > 2000 and nrg > 4000
if nrg < 4000
if age < 2000
'do stuff for age <= 2000 and nrg < 4000
--- End quote ---
or in DB DNA
--- Code: ---cond
*.nrg 4000 >
*.robage 2000 >
start
'do stuff
end
cond
*.nrg 4000 <
*.robage 2000 <
start
'do stuff
end
--- End code ---
Conditions are "anded" by default in 2.37 and earlier
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version