Discussion:
Turn Rate of enemy bot
v***@gmail.com
2014-06-14 21:21:52 UTC
Permalink
I'm trying to beat a SpinBot from the samples. I decided to calculate its
Heading difference between frames. I'm getting weird results: 6 than 9,
12... It shouldn't be more than MAX_TURN_RATE and especially for SpinBot
the Turn Rate should be also stable. So what's wrong in my approach?
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
fnl
2014-06-17 21:44:15 UTC
Permalink
That is hard to tell without seeing the source code for your robot.
I advice you to carefully read your code and look out places where you use
radians and/or degrees. It might be that you use degrees in a place where
you should have been using radians and vice versa?
Just a quick guess. This is typically the situation making it hard to
figure out, where the error is in the code, when all calculations seems to
be just right. :-)

Cheers,
- Flemming
Post by v***@gmail.com
I'm trying to beat a SpinBot from the samples. I decided to calculate its
Heading difference between frames. I'm getting weird results: 6 than 9,
12... It shouldn't be more than MAX_TURN_RATE and especially for SpinBot
the Turn Rate should be also stable. So what's wrong in my approach?
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...