Difference between revisions of "Talk:OcnirpSNG"

From Robowiki
Jump to navigation Jump to search
(RoboRumble version reason)
(what version to use with RR@Home?)
Line 24: Line 24:
 
* Indeed, alphanumeric versions numbers are best. On an unrelated topic, why are you limited to 1.5.4 GrubbmGait? Any reason why not 1.6.0.2? --[[User:Rednaxela|Rednaxela]] 00:16, 4 March 2009 (UTC)
 
* Indeed, alphanumeric versions numbers are best. On an unrelated topic, why are you limited to 1.5.4 GrubbmGait? Any reason why not 1.6.0.2? --[[User:Rednaxela|Rednaxela]] 00:16, 4 March 2009 (UTC)
 
* No real reason, I shortly used 1.6.0 but that gave problems with SilverSurfer, and after that I just did not take the time to upgrade to a newer version. --[[User:GrubbmGait|GrubbmGait]] 07:04, 4 March 2009 (UTC)
 
* No real reason, I shortly used 1.6.0 but that gave problems with SilverSurfer, and after that I just did not take the time to upgrade to a newer version. --[[User:GrubbmGait|GrubbmGait]] 07:04, 4 March 2009 (UTC)
 +
** Btw, what is the latest stable version to use with RoboRumble? --[[User:GrubbmGait|GrubbmGait]] 08:19, 4 March 2009 (UTC)

Revision as of 09:19, 4 March 2009

Shall I proud with this bot? I own only half of it. » Nat | Talk » 12:11, 1 March 2009 (UTC)

Good bot! I'm trying to put random movement to Scytodes, but I can't make it less than 266 bytes... Maybe Simonton's gun costs less codesize? --HUNRobar 12:58, 1 March 2009 (UTC)

It the smallest PM I can found on the wiki right now :) Note that Simonton are excellent in codesize reduction. You might read the CodeSize/WritingSmallCode on the old wiki. Note that with his trick on variable declaration, I can take 14 bytes away from Ocnirp and have enough room for StopNGo, anyway. » Nat | Talk » 14:14, 1 March 2009 (UTC)

Note for you, if you don't mine to turn while you are moving, you can reduce codesize to 227, if not, 237.

  • The e.getDistance() called twice, declare a variable.
  • Note that instead of degrees, use radians. The turn code will look like setTurnRightRadians((Math.cos(absB = e.getBearingRadians()) + direction * -0.174532925D));
  • As you will see above, use Math.cos will move in perpendicular automatically. (I don't know why, but ripped from WeekendObsession)
  • Move the turn code before the gun code, assign the e.getBearingRadians() to absB first, then in gun, use += getHeadingRadians();

That all I squeeze the Scytodes, note that we use the same gun :) » Nat | Talk » 14:28, 1 March 2009 (UTC)

In fact Scytodes 0.3 is awfully inoptimized in codesize. Just look at Prestige's code. I even managed to make direction unnecessary! Okay, in stop and go it wouldn't work, but now I could be sqeeze further any more, maybe 1-2 bytes. Anyway, I deal with nanos so much that I discover newer and newer tricks every week. --HUNRobar 15:11, 1 March 2009 (UTC)

Come on, Robar, share your secret with us. » Nat | Talk » 15:35, 1 March 2009 (UTC)

Start to fear, I managed to finish the first version of BlackWidow, the worst enemy of WeekendObsession and OcnirpSNG! :P --HUNRobar 19:38, 2 March 2009 (UTC)

Oh oh... I'll wait. With Ocnirp, I win WeekendObsession ans several PM bot. Try your bot with RaikoNano, GFNano or something else, if you win, I'll spent more time on it =D » Nat | Talk » 02:52, 3 March 2009 (UTC)

Nat, it is a very bad idea to put underscores in your versionnumber. Roborumble can not handle them very well. When listed as first in a battle, everything goes ok, but when listed as second contender, roborumble gives an exception. This is an old bug and maybe it is solved in a new version, but not in 1.5.4 that I still use. --GrubbmGait 22:10, 3 March 2009 (UTC)

  • Indeed, alphanumeric versions numbers are best. On an unrelated topic, why are you limited to 1.5.4 GrubbmGait? Any reason why not 1.6.0.2? --Rednaxela 00:16, 4 March 2009 (UTC)
  • No real reason, I shortly used 1.6.0 but that gave problems with SilverSurfer, and after that I just did not take the time to upgrade to a newer version. --GrubbmGait 07:04, 4 March 2009 (UTC)
    • Btw, what is the latest stable version to use with RoboRumble? --GrubbmGait 08:19, 4 March 2009 (UTC)