Inspired with Maca's
Nano, I decided to write my own 1S bot with innovative (as I thought) idea. But then it appeared, that Maca implemented this idea ealier in
Animal Archaea Nevertheless, there is a proof of concept.
Nanobacter independensalways {
*.eye5 > 0 && *.myeye == *.refeye && .aimdx
|| *.eye5 > 30 && .shoot
|| *.refeye != *.myeye && *.eye6 != *.eye4 && .aimdx
|| *.nrg > 20000 && .repro
|| *.vel < 30 && .up
= *.eye5 > 0 && *.myeye == *.refeye && 31
|| *.eye5 > 30 && -1
|| *.refeye != *.myeye && *.eye6 - *.eye4
|| *.nrg > 20000 && 30
|| 30 - *.vel;
}
There is compiled DNA.
start
*.eye5 sgn sqr *.myeye *.refeye sub sgn abs -- abs mult 31 mult
dup sgn abs -- abs *.eye5 30 sub sgn sqr -1 mult mult add
dup sgn abs -- abs *.refeye *.myeye sub sgn abs *.eye6 *.eye4 sub mult mult add
dup sgn abs -- abs *.nrg 20000 sub sgn sqr 30 mult mult add
dup sgn abs -- abs 30 *.vel sub mult add
*.eye5 sgn sqr *.myeye *.refeye sub sgn abs -- abs mult .aimdx mult
dup sgn abs -- abs *.eye5 30 sub sgn sqr .shoot mult mult add
dup sgn abs -- abs *.refeye *.myeye sub sgn abs *.eye6 *.eye4 sub sgn abs mult .aimdx mult mult add
dup sgn abs -- abs *.nrg 20000 sub sgn sqr .repro mult mult add
dup sgn abs -- abs 30 *.vel sub sgn sqr .up mult mult add
store
stop