Author Topic: KO formula  (Read 2131 times)

FourAcesPoker

  • Jr. Member
  • **
  • Posts: 86
  • Big Slick "The Hitman"
    • View Profile
    • Four Aces Poker
KO formula
« on: September 03, 2008, 11:23:13 AM »
my current formula for determining points is (n-r+1)*100.   my points per hit is in the box above that and it is 25. How can i incorporate hits into my basic formula to reward players for multiple hits?
Big Slick "The Hitman"
Certified Tournament Director
Tournament Directors Association
Four Aces Poker
"Can you beat Four Aces?"

badbeat

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: KO formula
« Reply #1 on: September 03, 2008, 12:33:23 PM »
((n+1-r)*100) + (nh*25)

nh = number of hits

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: KO formula
« Reply #2 on: September 03, 2008, 01:06:03 PM »
Don't forget to set the "Points for hit" input back to 0 so you don't award double points for hits.

FourAcesPoker

  • Jr. Member
  • **
  • Posts: 86
  • Big Slick "The Hitman"
    • View Profile
    • Four Aces Poker
Re: KO formula
« Reply #3 on: September 03, 2008, 01:23:16 PM »
thanks...i think i might've left out one thing though...is there a solution for the following regarding hits: 1 hit is 25 points, the 2nd is worth 50, (not another 25) (so far total for 2 hits is 75), 3 hits is 25 for the hit + 75 more for the 3rd hit = 100 points, so on and so forth. And can you max it out at 5 hits?

1 hit = 25 points
2nd hit = 50 more points
3rd hit = 75 more points
4th Hit = 100 more points
5th hit and up = 125 more points


so if the player gets 3 hits in a game he receives 25 + 50 + 75 + 100 + 125 = 375 points...follow? hope it isn't confusing...trying to reward players for dominating a game.
Big Slick "The Hitman"
Certified Tournament Director
Tournament Directors Association
Four Aces Poker
"Can you beat Four Aces?"

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: KO formula
« Reply #4 on: September 03, 2008, 02:23:11 PM »
Yikes, a recursive formula.  Can't do that.  But since it maxes out at 5th place, the following should work:

nh * 25 + max(0, (nh - 1) * 25) + max(0, (nh - 2) * 25) + max(0, (nh - 3) * 25) + max(0, (nh - 4) * 25)

By the way, in your example I think you meant "so if the players gets 5 hits in a game he receives ... 375 points"

Phaze

  • Sr. Member
  • ****
  • Posts: 346
    • View Profile
Re: KO formula
« Reply #5 on: September 03, 2008, 06:17:40 PM »
Its too bad you couldn't use loops in the formulas, especially now that you can assign variables... any chance that may happen? I've come across a couple of formula requests that I thought may be handled with loops

FourAcesPoker

  • Jr. Member
  • **
  • Posts: 86
  • Big Slick "The Hitman"
    • View Profile
    • Four Aces Poker
Re: KO formula
« Reply #6 on: September 04, 2008, 07:15:22 AM »
ok, so to go with the 1st formula, it should look like this then:   

((n+1-r)*100) + nh * 25 + max(0, (nh - 1) * 25) + max(0, (nh - 2) * 25) + max(0, (nh - 3) * 25) + max(0, (nh - 4) * 25)

did i leave anything out?
Big Slick "The Hitman"
Certified Tournament Director
Tournament Directors Association
Four Aces Poker
"Can you beat Four Aces?"

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: KO formula
« Reply #7 on: September 04, 2008, 11:23:34 AM »
FourAcesPoker: that looks right.

Phaze: Adding that kind of complexity adds a lot of processing time.  The formula is evaluated for every player every time anything significant within the tournament changes.  I don't think the cost/benefit ratio will pay off.

Phaze

  • Sr. Member
  • ****
  • Posts: 346
    • View Profile
Re: KO formula
« Reply #8 on: September 05, 2008, 08:17:31 PM »
understandable... to boot it will make the help me with formulas real wierd