Difference between revisions of "Thread:User talk:Cbrowne/Is this a sensible way to do it?/reply (2)"

From Robowiki
Jump to navigation Jump to search
 
(also: displaying radar arcs)
 
Line 1: Line 1:
 
You need to turn it every tick, it's just a question of clockwise or counter-clockwise. The area covered by the sweep of the radar from last tick to this tick is the area that is scanned. So once you scan, you want to reverse the direction you turn the radar, not stop turning it.
 
You need to turn it every tick, it's just a question of clockwise or counter-clockwise. The area covered by the sweep of the radar from last tick to this tick is the area that is scanned. So once you scan, you want to reverse the direction you turn the radar, not stop turning it.
 +
 +
Edit: Also, there's an option in Robocode to display the radar arcs, which would help you see exactly what's going on.

Latest revision as of 16:00, 11 October 2011

You need to turn it every tick, it's just a question of clockwise or counter-clockwise. The area covered by the sweep of the radar from last tick to this tick is the area that is scanned. So once you scan, you want to reverse the direction you turn the radar, not stop turning it.

Edit: Also, there's an option in Robocode to display the radar arcs, which would help you see exactly what's going on.