Difference between revisions of "Talk:Cannon"
m (put message in wrong place) |
(against rambots?) |
||
Line 1: | Line 1: | ||
+ | ==Initial Discussion== | ||
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) | ||
Line 19: | Line 20: | ||
As a quick note, looks like you forgot to change "Movement ripped straight from WaveSnake" when you changed to SandboxFlattener --[[User:Rednaxela|Rednaxela]] 17:36, 3 October 2009 (UTC) | As a quick note, looks like you forgot to change "Movement ripped straight from WaveSnake" when you changed to SandboxFlattener --[[User:Rednaxela|Rednaxela]] 17:36, 3 October 2009 (UTC) | ||
+ | |||
+ | ==Rambots== | ||
+ | Any advice against rambots? --[[User:Starrynte|Starrynte]] 15:26, 4 October 2009 (UTC) | ||
+ | * Speaking of which, when I put Cannon (0.94) against Sanguijuela (0.8) in Robocode 1.7.1.4, Sanguijuela seems to teleport. Is it just my Robocode? --[[User:Starrynte|Starrynte]] 15:26, 4 October 2009 (UTC) |
Revision as of 16:26, 4 October 2009
Initial Discussion
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.
- RaikoMicro or Aristocles would be good places to look for examples of waves in a MicroBot. --Voidious 17:26, 20 September 2009 (UTC)
Any suggestions for movement (I have around 142 bytes)? --Starrynte 01:57, 1 October 2009 (UTC)
With only 142 codesize to spare.... you probably can't fit a movement more advanced than any you see in a NanoBot. My suggestion would be to go with either a simple random movement with musashi trick, or if you feel really daring try a so called 'velocity surfer' movement like a few recent NanoBots have tried. For overall strength of the bot though, I think it'll be kind of critical to slim the gun codesize further so you can fit a movement better than a NanoBot movement. --Rednaxela 02:34, 1 October 2009 (UTC)
Now have 170 codesize, if that's any better (BTW, are the units of codesize bytes?) --Starrynte 04:14, 1 October 2009 (UTC)
- I'm 90% sure that the unit of codesize is not bytes, despite the fact that the robocode says "bytes" when packaging the bot. Often people say "bytes", but I'm pretty doubtful that's the case. Then again, I'm only 90% sure, not 100% sure. --Rednaxela 04:18, 1 October 2009 (UTC)
- A little research turns up that in Java, "Each bytecode opcode is one byte in length", so it very well could be bytes. --Starrynte 04:43, 1 October 2009 (UTC)
If I am getting a spike around GF -0.1, what does that mean? Also, is there such thing as a getMaxVelocity() method? --Starrynte 16:27, 3 October 2009 (UTC)
As a quick note, looks like you forgot to change "Movement ripped straight from WaveSnake" when you changed to SandboxFlattener --Rednaxela 17:36, 3 October 2009 (UTC)
Rambots
Any advice against rambots? --Starrynte 15:26, 4 October 2009 (UTC)
- Speaking of which, when I put Cannon (0.94) against Sanguijuela (0.8) in Robocode 1.7.1.4, Sanguijuela seems to teleport. Is it just my Robocode? --Starrynte 15:26, 4 October 2009 (UTC)