Bots and Simulations > DNA - General

I'm not sure what I just did, but it is interesting...

(1/1)

MysticalDumpling:
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

Billy:

--- Quote from: MysticalDumpling on August 15, 2014, 08:57:56 AM ---'Shooting
*.eye5 0 sub sgn abs 0 floor 7 mult add

--- End quote ---
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. :)

Navigation

[0] Message Index

Go to full version