1
DNA - General / DNA language
« on: May 07, 2011, 04:25:46 PM »
If I understand well; you can write a bot dna like this
cond
*.eye5 0!=
*.refeye 0 =
start
'deal with veggie
stop
start
*.eye5 0 !=
*.refeye *.myeye !=
*.refeye 0!=
start
'kill the dreaded foe with much bloodshed and slaughter
stop
cond
*.eye5 0 !=
*.refeye *.myeye =
start
'move away from siblings
stop
end
Or you can write it like this
start
If *.eye5 0 !=
If *.refeye *.myeye !=
if *.refeye 0 =
start 'deal with veggy
else deal with foe
else 'deal with family
Else 'look around
stop
the problem is that I can not figure how I can translate it using "clearbool, dupbool, etc"
I dunno if I wrote it well, I did not use elseif things. If you see a mistake in either code, please point it out.
cond
*.eye5 0!=
*.refeye 0 =
start
'deal with veggie
stop
start
*.eye5 0 !=
*.refeye *.myeye !=
*.refeye 0!=
start
'kill the dreaded foe with much bloodshed and slaughter
stop
cond
*.eye5 0 !=
*.refeye *.myeye =
start
'move away from siblings
stop
end
Or you can write it like this
start
If *.eye5 0 !=
If *.refeye *.myeye !=
if *.refeye 0 =
start 'deal with veggy
else deal with foe
else 'deal with family
Else 'look around
stop
the problem is that I can not figure how I can translate it using "clearbool, dupbool, etc"
I dunno if I wrote it well, I did not use elseif things. If you see a mistake in either code, please point it out.