Difference between revisions of "User talk:Starrynte/Melee Evaluator"

From Robowiki
Jump to navigation Jump to search
(moved from the other link)
(reply)
Line 23: Line 23:
 
Though there is occasionally a bug where survival up through stage 1 is different than survival in stage 1 only...still don't know why
 
Though there is occasionally a bug where survival up through stage 1 is different than survival in stage 1 only...still don't know why
 
--[[User:Starrynte|Starrynte]] 01:13, 15 September 2009 (UTC)
 
--[[User:Starrynte|Starrynte]] 01:13, 15 September 2009 (UTC)
 +
 +
Ah, very cool. I think it might be good to add that info to the non-talk page, too. =) --[[User:Voidious|Voidious]] 13:44, 15 September 2009 (UTC)

Revision as of 14:44, 15 September 2009

Nice work, I haven't used it because I've been kind of busy lately, but I will try it when I start working on melee again. I was thinking about writing some melee evaluation myself anyway, I already do with 1v1. One question though, why do you have

public MeleeEvaluate(){
	throw new RuntimeException("YOU MUST SPECIFY EXACTLY ONE (1) ADVANCED ROBOT AS A PARAMETER!");		
}

You could simply remove the default constructor, since you have a constructor with parameters Java won't create a default constructor for the class. So a call like new MelleEvaluate() would give compilation error instead of having to wait for a runtime error to find out. --zyx 06:35, 14 September 2009 (UTC)


Hey - what kind of stuff does this keep track of? I'm curious, but it also seems like it would be good information to add to the page. Also, I don't know if you meant to do it this way, but I think Starrynte/Melee Evaluator Source should be at User:Starrynte/Melee Evaluator Source (or, at least, this page and that page should be in the same namespace). One other thought is that you don't really need to change the package name - you can have code from other packages in your bot if you want. --Voidious 17:35, 14 September 2009 (UTC)

Hmm, I meant to put it there...moved and it keeps track of

  • Survival: The average energy gain during a stage
  • Hitrate: The average hitrate during a stage
  • Infliction: The average damage inflicted during a stage
  • Damage: The average damage encountered during a stage
  • Survival up through a stage: How often you survive up to and through an ENTIRE stage
  • Survival in a stage only: How often your survive in one SINGLE stage
  • Skipped turns: The average number of skipped turns during a stage
  • Hit walls: The average number of wall hits during a stage

Though there is occasionally a bug where survival up through stage 1 is different than survival in stage 1 only...still don't know why --Starrynte 01:13, 15 September 2009 (UTC)

Ah, very cool. I think it might be good to add that info to the non-talk page, too. =) --Voidious 13:44, 15 September 2009 (UTC)