Author Topic: Formula Help to Include In The Money  (Read 1485 times)

T-Bone

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Formula Help to Include In The Money
« on: January 07, 2011, 07:54:32 AM »
I want to award bonus points for finishing in the money. Usually we pay three places but have paid as few as two and as many as five (based on number of players). The formula I currently use--(n+1-r)*2 +switch(r,1,10,2,5,3,2)--takes care of the average game w/three in the money. How can I incorporate the inTheMoneyRank variable (or some other) to automatically hand out bonus points?

Thanks, guys and gals,

The Bone-Man
If it ain't naked, deep-fried or poker-related, I ain't interested!

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Formula Help to Include In The Money
« Reply #1 on: January 07, 2011, 10:27:08 AM »
I believe that Corey added the <inthemoney> token for 2.6.b4, if you're using the beta.
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Formula Help to Include In The Money
« Reply #2 on: January 07, 2011, 11:07:32 AM »
The inTheMoney variable is available in formulas in 2.5.11.  Not sure when it was added.

If you're just looking to add some points, just add it to the formula, optionally with a multiplier.  inTheMoney will have a value of 1 if the player is "in the money", 0 otherwise.  For example:

(n + 1 - r) * 2 + switch(r, 1, 10, 2, 5, 3, 2) + inTheMoney

or

(n + 1 - r) * 2 + switch(r, 1, 10, 2, 5, 3, 2) + (inTheMoney * 2)

T-Bone

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: Formula Help to Include In The Money
« Reply #3 on: January 07, 2011, 03:00:54 PM »
Near as I can tell in testing, this doesn't work. Only points added are those specified by the switch--none by inTheMoney. If I change the formula to (n+1-r)*2 + inThe Money which (as I understand it) should add 1 point for every player cashing, I get a 2 point progression from last to first. 'Course linear thought is not my strong suit. I've always been the guy who says, "Let's push this button and see what happens!" No biggy...I can just adjust the formula/switch when number of payouts changes. Thanks for the suggestion.
If it ain't naked, deep-fried or poker-related, I ain't interested!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Formula Help to Include In The Money
« Reply #4 on: January 07, 2011, 03:50:53 PM »
I assure you it does work.  How did you test it?

T-Bone

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Re: Formula Help to Include In The Money
« Reply #5 on: January 07, 2011, 05:00:02 PM »
I tested using the ever-popular Test Formula button (which didn't work but could have been an error on my part). After reading your reply, I ran a test tournament and points were as they should have been. Which means you were correct and I incorrect--because I am never wrong!  ;D

Thanks.
If it ain't naked, deep-fried or poker-related, I ain't interested!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Formula Help to Include In The Money
« Reply #6 on: January 08, 2011, 07:45:57 AM »
:)