Rabbit Chase Scoring

All things BZFlag - no [OT] here please
Post Reply
User avatar
Mark_IV
Private First Class
Private First Class
Posts: 157
Joined: Wed Aug 25, 2010 12:24 am
Location: Actually joined 2004 or 2005 as tyjr ;)

Rabbit Chase Scoring

Post by Mark_IV »

What is with the percents when you play rabbit chase. When you start, you have a score of 0-0, yet you have 50%. If you become rabbit and kill someone, you have 1-0, but not 100%. I just wanted to know why the percents on rabbit chase don't correspond with your score.
User avatar
gravyfan
Private First Class
Private First Class
Posts: 7
Joined: Thu Feb 03, 2011 5:21 pm

Re: Rabbit Chase Scoring

Post by gravyfan »

I think the percentage has to do with how long you are the rabbit out of your total play time or something. I don't know for sure though, so I am curious as to how that exactly works as well.
User avatar
Mark_IV
Private First Class
Private First Class
Posts: 157
Joined: Wed Aug 25, 2010 12:24 am
Location: Actually joined 2004 or 2005 as tyjr ;)

Re: Rabbit Chase Scoring

Post by Mark_IV »

It can't be that, because if you start, you have been rabbit 0% of the time, yet you start at 50%.
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Rabbit Chase Scoring

Post by blast »

It's the "rabbit score", which is calculated by passing in the wins and losses to this function, and then multiplying by 100:

Code: Select all

// Take into account the quality of player wins/(wins+loss)
// Try to penalize winning casuality
static float rabbitRank (int wins, int losses) {
  // otherwise do score-based ranking
  int sum = wins + losses;
  if (sum == 0)
    return 0.5;
  float average = (float)wins/(float)sum;
  // IIRC that is how wide is the gaussian
  float penalty = (1.0f - 0.5f / sqrt((float)sum));
  return average * penalty;
}
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
Mark_IV
Private First Class
Private First Class
Posts: 157
Joined: Wed Aug 25, 2010 12:24 am
Location: Actually joined 2004 or 2005 as tyjr ;)

Re: Rabbit Chase Scoring

Post by Mark_IV »

In rabbit chase what are wins and losses?
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Rabbit Chase Scoring

Post by joevano »

Mark_IV wrote:In rabbit chase what are wins and losses?
UHm.. kills and killed
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
User avatar
Mark_IV
Private First Class
Private First Class
Posts: 157
Joined: Wed Aug 25, 2010 12:24 am
Location: Actually joined 2004 or 2005 as tyjr ;)

Re: Rabbit Chase Scoring

Post by Mark_IV »

Ok, thats what I thought, but just making sure. Thanks for the answers Blast and Joe.
Post Reply