Difference between revisions of "Talk:BlackWidow"

From Robowiki
Jump to navigation Jump to search
(64 or 80 for 2 and 3)
(game physics - need 2 ticks of stationary)
Line 22: Line 22:
  
 
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. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 04:28, 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. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 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. --[[User:Skilgannon|Skilgannon]] 08:05, 28 March 2009 (UTC)

Revision as of 09:05, 28 March 2009

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)