Re: Re: e.getBearing() returns angles with errors
Noah Jacobson <[email protected]>
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
I think when you print to the console (via System.out.println, for instance), the text you specified can be seen by clicking on your robot's name over on the side of the battle screen. This is the same window one uses to turn on and off painting. Doing so should open a status window with some tabs, and one of those tabs will show what you've printed. I forget the actual name of the window, but I hope this is helpful. -Noah ________________________________ From: feistybot99 <[email protected]> To: [email protected] Sent: Mon, April 25, 2011 11:33:33 AM Subject: [Robocode] Re: e.getBearing() returns angles with errors --- In [email protected], "feistybot99" <aprudente_99@...> wrote: > > Hi > > I am relatively new to Robo as well as Java but I have a question: > When I use e.getBearing() the angle returned has a significant error, like >around 25 degrees. I thnk its because the the beam width is too wide. Its around >30 deg. So I can't get an accurate fix on the enemy. How can I make the beam >width narrower or otherwise get a more accurate bearing? > > Another question, how can I print data to the screen or console window? The >program seems to ignore out.println > > > kind regards, > andrew > Never mind, i found the problem with the angle error. I still have the question about printing out to the screen. Do I have to show the console window first? Let me know. regards, andrew