Talk:BlackWidow

From Robowiki
Revision as of 08:14, 6 April 2009 by Robar (talk | contribs)
Jump to navigation Jump to search

Can reduced codesize a lot this robot is. I've told you, make a turning before gun code so you can saved one e.getBearingRadians(). I think the distance if assign it to variable will save the codesize, but not sure. I think its random movement is very vulnerable to Circular Targeting. You chose new direction on bullet fire, but if you still go the same direction.... !!!!

Ok-ok, I just set up Eclipse and saw that it's 247 bytes with Jikes instead of 250 with NetBeans. (probably javac) I immediately signed it up to the rumble, so there are many things to optimize.
I don't understand why you mention random movement and circular targeting. That's the stopNgo's task. I optimized random movement against PM and HOT. Anyway, it isn't a lot worse than Ocnirp's random movement, according to the results... --HUNRobar 17:14, 5 March 2009 (UTC)

  • Note: Eclipse doesn't use Jikes, I think is is javac, but don't know how that happend. » Nat | Talk » 14:17, 7 March 2009 (UTC)

Right now, I surprised that this bot get higher APS score than OcnirpSNG, but I still win by both PL and ELO :-) Let see when all my test bot removed. But BlackWidow still lost to both Ocnirp and OcnirpSNG. Another surprise is that this one lost much to NanoDeath and NeophyteSRAL!

One more question to ask you, your nano guru HUNRobar, what is smaller, String or StringBuilder (or StringBuffer in that way)? » Nat | Talk » 14:14, 7 March 2009 (UTC)

But BlackWidow is better at Survival (+ ~2%) and beats weaker bots better than Ocnirp. Anyway, on Friday I started to make Mosquito with PM. ;) I implemented WeekendObsession's code and it's 10 bytes less in codesize! I'm considering to update all my pm bots to Simonton's code. I think the top 4 can start to fear. ;) --HUNRobar 17:06, 8 March 2009 (UTC)


I don't know do you know this or not, but there is a bot with name BlackWidow already! » Nat | Talk » 10:40, 8 March 2009 (UTC)

Yes, I got to know it 2 days ago, but it isn't in the rumble, isn't it? --HUNRobar 17:06, 8 March 2009 (UTC)

Yes, it isn't in the rumble. But next time you should check the robot name more careful to avoid another duplicated =) » Nat | Talk » 23:57, 8 March 2009 (UTC)

Just letting you know, you can set your move amount to 37, as 1+2+3+4+5+6+7+5+3+1=37. If you want to dodge the bigger bullets better, at risk of not stopping in time for smaller bullets, you can move 48, 1+2+3+4+5+6+7+8+6+4+2=48. --Skilgannon 00:27, 28 March 2009 (UTC)

OcnirpSNG use 47 actually. Skilgannon, if I remembered corectly, Waylander move relative to enemy bullet power, right? If you move to dodge 2 power bullets, you can use 1+2+3+4+5+6+7+8+8+8+6+4+2=64. Power 3 allowed you to move up to 80. I think Robar use 36 because WeekendObsession use it. » Nat | Talk » 04:28, 28 March 2009 (UTC)

No, you need 2 ticks to be at rest before you detect they fire, because that is when they take the data from (think wavesurfing physics). So for power 2 there are only 2 ticks you can be at velocity 8, making the max distance you can travel 56. Yes, all my Micro bots take this into account, and vary between 37 and 48 (and more if bullet power is above 2.5) depending on the bullet power, making them able to effectively dodge bullets all the way down to power 1 while still moving maximum possible distance for larger bullets. --Skilgannon 08:05, 28 March 2009 (UTC)

I was testing StopNGo with NanoAndrew at that time, and then it seemed 36 is still the best (which is the width of the robot, isn't it? That's how I figured it out.). I tested on it because it uses low-power bullets, probably between 1-2. I didn't make any calculations about the movement. Now I don't do anything about my robots, just look in the wiki daily. I've plans with BlackWidow, though. I will test how it works with setAdjustGun on, but I rather like to implement some velocity-trick into the random movement. In addition, I have a slightly modified random movement which should be tested against pm and anti-pm bots.
Other: After signing Blackwidow up, I replaced the pm with WeekEndObsession's gun and it saved 3-4 bytes. I'm also planning to figure out the PRAL gun. I seems to be quite effective and small-codesize. I think I'll implement it into Mosquito or a super-tuned BlackWidow. ;)--HUNRobar 16:55, 28 March 2009 (UTC)

I've do some test with PRAL/SRAL and it work best only in short distance, and Neophyte keep distance at 180. » Nat | Talk » 06:11, 29 March 2009 (UTC)


Just letting you know, the release date is the date of first release, not current release. » Nat | Talk » 19:07, 5 April 2009 (UTC)

Thank's corrected. ;) --HUNRobar 19:18, 5 April 2009 (UTC)


I don't even believe that top nano-bot still have a room for color! » Nat | Talk » 20:24, 5 April 2009 (UTC)

I managed to squezze the code to about 230 bytes. :) I added lat. vel. rounding, plus colors. Other modifications didn't require more codesize. I'm thinking of some energy management, but I think I'll give Robocode a break again. I also tried distance-control, but I couldn't squeeze the code less than 251 bytes. :) (in there was a distance controlling version but I had to use precalculated bullet flight time from neophyte pattern. It was a lot worse than the original bot.) --HUNRobar 07:14, 6 April 2009 (UTC)

You cannot post new threads to this discussion page because it has been protected from new threads, or you do not currently have permission to edit.

There are no threads on this page yet.