Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: MysticalDumpling on August 15, 2014, 08:57:56 AM

Title: I'm not sure what I just did, but it is interesting...
Post by: MysticalDumpling on August 15, 2014, 08:57:56 AM
Some bizzare aiming. It is a segment of a new SS bot I'm working on...

50
'Repro
*.nrg 1000 sub sgn 0 floor .repro mult 1 rnd mult
-6
'Moving
1 rnd -298 mult add
'Shooting
*.eye5 0 sub sgn abs 0 floor 7 mult add

store
Title: Re: I'm not sure what I just did, but it is interesting...
Post by: Billy on August 16, 2014, 11:36:06 AM
'Shooting
*.eye5 0 sub sgn abs 0 floor 7 mult add
This can be simplified to:

*.eye5 sgn 7 mult add

Just to let you know. "0 sub" subtracts 0, which does nothing. "abs" and "0 floor" are not needed as *.eye5 will always be positive. :)