Difference between revisions of "Talk:Cannon"

From Robowiki
Jump to navigation Jump to search
(waves in a micro?)
(How I do it)
Line 1: Line 1:
 
Ah, another Dynamic clustering micro bot! I made one not long ago, it's called [[MagicD3]]. Good luck with yours--[[User:CrazyBassoonist|CrazyBassoonist]] 16:04, 20 September 2009 (UTC)
 
Ah, another Dynamic clustering micro bot! I made one not long ago, it's called [[MagicD3]]. Good luck with yours--[[User:CrazyBassoonist|CrazyBassoonist]] 16:04, 20 September 2009 (UTC)
 
* How did you fit the Waves into the micro? (I couldn't figure out how, so I decided to go with PM for now) --[[User:Starrynte|Starrynte]] 17:05, 20 September 2009 (UTC)
 
* How did you fit the Waves into the micro? (I couldn't figure out how, so I decided to go with PM for now) --[[User:Starrynte|Starrynte]] 17:05, 20 September 2009 (UTC)
 +
 +
* Well, you can take a look at the source code if you want, I wouldn't recommend it though; there are other micros that do the same thing with better wave tracking and smaller codesize. But basically what I do is gather data when the enemy fires, then put it that data into an ArrayList(maybe LinkedList, I don't remember). Then I go through the List and check to see if each wave has passed the enemy, and if it has I remove it from the list and put it into a log of firing angles to use. Right now my targeting is segmented on lateral velocity, advancing velocity, a rolling average of the enemies lateral velocity, and distance.

Revision as of 19:12, 20 September 2009

Ah, another Dynamic clustering micro bot! I made one not long ago, it's called MagicD3. Good luck with yours--CrazyBassoonist 16:04, 20 September 2009 (UTC)

  • How did you fit the Waves into the micro? (I couldn't figure out how, so I decided to go with PM for now) --Starrynte 17:05, 20 September 2009 (UTC)
  • Well, you can take a look at the source code if you want, I wouldn't recommend it though; there are other micros that do the same thing with better wave tracking and smaller codesize. But basically what I do is gather data when the enemy fires, then put it that data into an ArrayList(maybe LinkedList, I don't remember). Then I go through the List and check to see if each wave has passed the enemy, and if it has I remove it from the list and put it into a log of firing angles to use. Right now my targeting is segmented on lateral velocity, advancing velocity, a rolling average of the enemies lateral velocity, and distance.