Difference between revisions of "Talk:GuessFactor Targeting Tutorial"

From Robowiki
Jump to navigation Jump to search
Line 3: Line 3:
 
== Beginner questions ==
 
== Beginner questions ==
 
Hi, I'm totally noob at Wave-based methods. I think I understand the idea, but to test the targeting I copied the code and added some simple movement to it. But the results are poor! The unsegmented version was something like a rolling average gun, but the segmented was just miserable. I know that this is just a sample code, but in this state it's just unusable. Here is the testbot: [http://invitel.hu/artrog/robar.experiments.GFBot_1.0.jar] --[[User:Robar|HUNRobar]] 17:18, 15 May 2009 (UTC)
 
Hi, I'm totally noob at Wave-based methods. I think I understand the idea, but to test the targeting I copied the code and added some simple movement to it. But the results are poor! The unsegmented version was something like a rolling average gun, but the segmented was just miserable. I know that this is just a sample code, but in this state it's just unusable. Here is the testbot: [http://invitel.hu/artrog/robar.experiments.GFBot_1.0.jar] --[[User:Robar|HUNRobar]] 17:18, 15 May 2009 (UTC)
 +
 +
: Well I've never used that exact code so I can't really tell, but one thing I don't like about it's segmentation is that I feel the distance is too segmented for a 35 rounds battle. I believe the idea is only to show how segmentation can be done, not to use those exact values, I'd recommend dividing by 200 instead of 100 and see if it improves. But on the general note I'd recommend getting the grasp on the idea and then writing your own code, you probably will like to use some graphical debugging so you can check if your waves are getting aligned with your bullets and read carefully on how the [[Robocode/Game Physics|game physics]] are. When and where the bullet does come out the bot after the setFireBullet is called, all that stuff makes a big difference. I'm not really sure if the bot in the tutorial is intended to work as is, but the explanation in the article combined with code gives a very good insight on how it works. That's only my opinion, I did learn a lot from the tutorial(although the segmented version wasn't there yet), just never used the code directly. And if you have specific questions I'll be happy to help you as much as I can. --[[User:Zyx|zyx]] 21:58, 15 May 2009 (UTC)

Revision as of 22:58, 15 May 2009

Credits - GuessFactor Targeting Tutorial
Old wiki page: GuessFactorTargeting/Tutorial
Original author(s): RoboWiki contributors

Beginner questions

Hi, I'm totally noob at Wave-based methods. I think I understand the idea, but to test the targeting I copied the code and added some simple movement to it. But the results are poor! The unsegmented version was something like a rolling average gun, but the segmented was just miserable. I know that this is just a sample code, but in this state it's just unusable. Here is the testbot: [1] --HUNRobar 17:18, 15 May 2009 (UTC)

Well I've never used that exact code so I can't really tell, but one thing I don't like about it's segmentation is that I feel the distance is too segmented for a 35 rounds battle. I believe the idea is only to show how segmentation can be done, not to use those exact values, I'd recommend dividing by 200 instead of 100 and see if it improves. But on the general note I'd recommend getting the grasp on the idea and then writing your own code, you probably will like to use some graphical debugging so you can check if your waves are getting aligned with your bullets and read carefully on how the game physics are. When and where the bullet does come out the bot after the setFireBullet is called, all that stuff makes a big difference. I'm not really sure if the bot in the tutorial is intended to work as is, but the explanation in the article combined with code gives a very good insight on how it works. That's only my opinion, I did learn a lot from the tutorial(although the segmented version wasn't there yet), just never used the code directly. And if you have specific questions I'll be happy to help you as much as I can. --zyx 21:58, 15 May 2009 (UTC)