Bots and Simulations > Interesting behaviour bots
Bot test 1
Prsn828:
--- Quote from: rayz ---
--- Quote from: bacillus ---Very nicely done . One minor thing I would change though is replace all that tedious wrapping with
--- Code: ---*.sineIn 1256 mod .sineIn store
--- End code ---
This modulus function replaces the four genes you used.
I look forward to new innovations using this algoritm...
--- End quote ---
one small problem that I found: at certain numbers, it reads numbers greater than 1 and less than -1, and at these values the value switches from something like 312... to -312...-- something a sine function does not do.
If somebody could take a look through it and see if there are any bugs, that would be great!
Thanks!
-Raymond
...School takes up too much time!
--- End quote ---
Interesting point. Perhaps you could say you re-invented the sine, and leave it at that But honestly, it is probably integer rounding trouble, it is something we must all accept at some point... or you could fix the source code, but accepting it is much easier.
Botsareus:
rayz, you will be happy to know that sin and cos are now native. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version