Re: basic help
fnl <[email protected]>
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
Your code look okay to me. I have downloaded the source, compiled it, and had several games againt sample.Walls. I see you are right that the bullet is always "behind" - but I can't see why. With my own bots I usually computes the x,y coordinates of the enemy and try to figure out what the x,y coordinate will be after my bullet has traveled the distance to the target x,y. I propose you have a look at the Liniar Targetting algoritms<http://robowiki.net/wiki/Linear_Targeting>available at the RoboWiki <http://robowiki.net>. Cheers, - Flemming Den lørdag den 3. maj 2014 00.03.35 UTC+2 skrev Tomás Abril: > > Hi, I'm new to robocode and just started my first robot. > I created a kind of targeting that predicts where the enemy will be if he > keeps going in the same direction and in the same speed. But it doesn't > seem to be working. > My bot just shoots exactly where it scans the other robot. I am fighting > against the sample wall bot. > > Here is my bot: > https://github.com/tomasabril/cortinabot/blob/master/Tomasbot.java > > Can someone help me? > Thanks > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.