Archived talk:CalculatingScore 20070913

From Robowiki
Jump to navigation Jump to search
       Archive        This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the [[Talk:Archived talk:CalculatingScore 20070913|current talk page]].     

Vuen, can you post the code for calculating score you mention Fractal uses? -- PEZ

Sure.


I was just talking with jim and he mentioned that this code could be used for deciding whether or not data should be saved on an enemy. It never really occured to me that this could be a use of this code. For this reason, I just added a little getScore method to simplify how the score is stored. You can call getScore at any point in time to get the realtime score of the robot you want. I haven't actually compiled it though, but that's pretty much what my ScoreGL? code does so it should work :D. Using this for actual competitive algorithms rather than just for the sake of having a realtime score seems like a good idea, and so if anybody'd like to use this code for it, feel free, but give credit somewhere : ). -- Vuen

Thanks. It was for descision making purposes I asked you to publish the code. What better to base descisions on than yours and your enemy's score? -- PEZ

Changed a few things. Fixed it up a bit. Simplified it a bit. Looks better now. -- Vuen

It's interesting that quite a few people are interested in this scoring code all of a sudden; this code is from Cake, which has been open source for well over a year (since the Rumble). -- Vuen

Okay. I made a few changes to get rid of both the name stuff and the getPacketOffset? stuff; it should just work on its own now. You now also have to pass it scan events. I also have not compiled it and just changed it here in the wiki window, so I have no clue if it works. Hopefully it'l compile :D; if it doesn't or if it has any bugs, please fix them or let me know! -- Vuen

I'll try to plug this class into Swiffer now. Swiffer is RWPCL. Would you consider placing this class under the same license? -- PEZ

Or, that might be too constraining. What about RWLPCL? -- PEZ

Um, I'm not a big fan of licensing, so I don't really mind what happens to it. You can pick a license if you like, and put it under it. It doesn't really matter to me : ). Does anybody want me to make a sample bot that uses this code? -- Vuen

Bugfix... Should be slightly more accurate now. -- Vuen

Can someone tell me how to print data in Robocode.I get such an error "Error: The return type of method "java.io.PrintStream? append(java.lang.CharSequence? $1);" does not match the return type of method "java.lang.Appendable append(java.lang.CharSequence? $1) throws java.io.IOException;" inherited from type "java/lang/Appendable?".

Try installing Java Developer Kit (JDK), this should help. -- remiq

Hi, I'm interested in having a more simple function for the score... is there a source you used to come up with this code, or is it just from experience, and it's kind of common knowledge for experienced people? I will try to distill the code down to a formula myself if I can find a better source. -- BenHorner

Robocode is open source, just take a peek at the code, if you really wanna know how. --Chase-san

That's a pretty good source I guess. :) Thanks. --BenHorner

Does a robot get credit for a bullet that hits an enemy after the shooter has already blown up? Anybody know? --RobertWalker

I think it does --Chase-san

Yes, and you may even get the kill bonus for damage done, but you won't get the survival bonus even if you snuff him. One of the speed optimizations I've noticed in FNL's versions of Robocode has been to chop the rounds short when there is one tank left standing. I've seen many rounds where bullets were on a collision course with a tank and the next round starts prematurely. -- Martin

There are no threads on this page yet.