Talk:LittleBlackBook

From Robowiki
Revision as of 15:53, 15 June 2009 by Nat (talk | contribs) (→‎Congrats!: not fit)
Jump to navigation Jump to search

Congrats!

Congrats! It's nice to see some movement in the nano scene lately. I was pondering predefined data bots myself actually. I'm curious though, you say "Any perfect dodge stop and go will kill it", which seems odd to me. It should be quite trivial for a distance/lateral segmented GF gun to hit that I'd think... --Rednaxela 01:51, 15 June 2009 (UTC)

Math.signum() off e.velocity screws up 0 velocity checks and I have no velocity averaging. I'll check other bots for inspiration though. Has to be TINY though
What about... static double foo = 1; foo = e.velocity + 0.01*foo; foo /= foo;? Not sure if that would be small enough, and I haven't checked it's codesize, but I think it's smaller than any others ways to handle that which come to my mind. I think it's smaller than static double foo = 1; foo = (e.velocity == 0) ? foo : Math.signum(e.velocity); anyway, since conditionals and function calls are expensive if I remember right. I'd also suggest seeing if you can get rid of the need to normalize the value to 1/-1 all together, but that may not be possible in this case. --Rednaxela 04:15, 15 June 2009 (UTC)
Anything having to do with statics are expensive. Your above code is probably around 25 bytes or so. Math.signum(e.getVelocity()) is 6 or so. I can easily fix my problem by adding +1 to the e.getVelocity() check on the inside of the gun( for 2 bytes)... But! It will only hit perfect stop/go 50% of the time as it is setup to use the velocity to know how far to lead. Also, bots like FretNano who have good guns, but get stuck on walls randomly, would then be unhittable. I get 1 lead value per distance segment at the moment. I've got a few ideas on how to improve this, though it will double+ the size of my string table. I will adhere to the 200k max limit and with 1000 or so bots to profile, I have to be careful on size. --Miked0801 13:38, 15 June 2009 (UTC)

Hi! Awesome results! Now that I looked at the code, I think there is one little problem with the overall concept: every time a new robot or a new version of a robot appears, you have to update the stats in your bot. --HUNRobar 10:31, 15 June 2009 (UTC)

And a decent problem it is. I'm going to review the string libraries today to see if I can find a "closest to this name" type function for my search. That'll at least handle versioning. The version in there right now is using default behavior against Pugio because my table is setup for 1.40. When all your other versions get cleared from the rumble, my rating will go up another .5 or so. --Miked0801 13:38, 15 June 2009 (UTC)
HashMap<String, String> enemyGF; enemyGF.get(e.getName().split(" ")[0]); =) » Nat | Talk » 14:03, 15 June 2009 (UTC)

Nice! I may re-release Ocnirp 1.0 to screw your stats =) Updated Wikipedia page for you now. » Nat | Talk » 12:00, 15 June 2009 (UTC)

Don't bother, I'm already using default values against that bot so it wouldn't make any difference so Nyaa Nyaa! :) --Miked0801 13:48, 15 June 2009 (UTC)
Really? I don't think so. (default is 50-40-30-20-10-0, right?). Beside, I'm working on Nano adaptive movement (Mysterious is its fail attempt) =) » Nat | Talk » 14:03, 15 June 2009 (UTC)
Ok, you win. There are quite a few bots taht got default cases though. For some reason I thought Ocnrip was one. And, yeah, nice string match there. I could fit that if, oh I don't know, I took out all my movement code ;) --Miked0801 14:20, 15 June 2009 (UTC)
That doesn't call fit, really. :P » Nat | Talk » 14:53, 15 June 2009 (UTC)

BTW, can someone get me a link to LittleBlackBook. I've got a few moments at work and the repository is down. Or email it to me at mdorgan(at)griptonite(dot).com --Miked0801 14:20, 15 June 2009 (UTC)

[1] ;) --HUNRobar 14:36, 15 June 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.

Contents

Thread titleRepliesLast modified
Updated417:29, 1 September 2014

2013-07-09 tables updated by nz.jdc and re-released as mld.jdc.nano.LittleBlackBook Michael if you ever return to the game and update LBB then please delete this one, it is just an interim update to remind people of true evil that is LBB :)

Nz.jdc (talk)12:31, 9 July 2013

It was fun while it lasted...

Sheldor (talk)15:57, 9 July 2013
 

Very cool that you managed to pull this off, nice work!

Voidious (talk)16:57, 9 July 2013

Wow - thank you for that! It's awesome that you were able to figure out what the heck those tables were about. I came here expecting to see LBB towards the middle and was pleasantly surprised. :)

Miked0801 (talk)18:02, 23 August 2014

Went and downloaded latest client and found it is not supported by rumble. Will try an earlier one when I get a chance. Confirmed that NZ did indeed figure out very well indeed how LBB works. I've found my old test harness and it all still works. Now to find the 2 hour block required to get a couple of bots added. BTW, if anyone is a student of Digipen, I now teach a class there in addition to my current job so come look me up. --Miked0801 (talk) 16:29, 1 September 2014 (UTC)

Miked0801 (talk)17:29, 1 September 2014