Author Topic: Changing Formula so Add-Ons do not Effect your points  (Read 1019 times)

rug07

  • Newbie
  • *
  • Posts: 25
    • View Profile
Changing Formula so Add-Ons do not Effect your points
« on: February 03, 2010, 07:01:47 PM »
Hi

My current formula for "Points for playing"  is  (sqrt((( numberOfplayers*buyinCost)*(buyinCost/totalCost))) / (r+1.0))     I have rebuys and the more my players spend (total cost) the less points they get.  This is fine for re-buys.  But Is there a way to change my formula so when a Player takes an Add-On this will not effect his points. At the moment it does, as the Cost for the Add-on goes towards a players overall Cost.    I cant just use "Points received for Add-on"  as this is a static amount and will effect the points differently depending on where you finish and will not  give a player his correct "rebate"

Thanks

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: Changing Formula so Add-Ons do not Effect your points
« Reply #1 on: February 04, 2010, 10:50:17 AM »
A player's total cost is essentially the amount the player paid for buying-in, any rebuys, any add-ons, and any bounty chips.  Variables for each of these are available.  Therefore:

totalCost = buyinCost + bountyChipCost + rebuyCost + addOnCost

So change your formula to:

(sqrt((( numberOfplayers*buyinCost)*(buyinCost/(buyinCost+bountyChipCost+rebuyCost)))) / (r+1.0))

Effectively taking add-ons cost out of the equation.

rug07

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Changing Formula so Add-Ons do not Effect your points
« Reply #2 on: February 04, 2010, 08:06:22 PM »
Thanks for the reply Corey

Worked Perfect, as always

« Last Edit: February 05, 2010, 03:47:53 AM by rug07 »