View source for Talk:IWillFireNoBullet
Jump to navigation
Jump to search
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
catching skipped turn exception | 0 | 00:21, 26 September 2015 |
Exact path prediction | 3 | 22:54, 20 August 2015 |
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
Return to Thread:Talk:IWillFireNoBullet/Exact path prediction.
What do you mean by "direct access"? Like to use Robocode's engine during the match instead of writing the prediction?
If you want, the MovementPredictor in Diamond is exactly correct and you're free to use it.
- Predictor: https://github.com/Voidious/Diamond/blob/master/voidious/utils/MovementPredictor.java
- Unit tests: https://github.com/Voidious/Diamond/blob/master/voidious/utils/MovementPredictorTest.java
- LocationBot is how I generated the unit tests.
Sounds like you might just need to look at getNewVelocity: https://github.com/Voidious/Diamond/blob/master/voidious/utils/MovementPredictor.java#L125