How would I prevent my robot from touching a certain line?

78 Views Asked by At

I'm quite new to java and robocode, so please bear with me if my questions are dumb.

I can calculate a line in which the opponent's bullet will travel, but I was wondering how I would go about storing and moving the robot so it doesn't touch any of these lines (I have to use a normal Robot, not an AdvancedRobot). Is there a method for something like this (I'm not looking for code, nor have I implemented this, I am just asking for suggestions on how to go about this)?

0

There are 0 best solutions below