Author Topic: Need Help with Point Formula Please  (Read 1261 times)

TrainerBBD

  • Newbie
  • *
  • Posts: 3
    • View Profile
Need Help with Point Formula Please
« on: June 07, 2011, 09:39:03 AM »
We want to run our season with the below point structure ... Can anyone assist?

o   1st Place = 20
o   2nd Place = 18
o   3rd Place = 16
o   4th Place = 14
o   5th Place = 12
o   6th Place = 10
o   7th Place = 8
o   8th Place = 6
o   9th Place = 4
o   10th place = 2
o   11th and lower =1

o   Hit Man = 1


Thanks for taking time :)

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Need Help with Point Formula Please
« Reply #1 on: June 07, 2011, 10:06:22 AM »
TrainerBBD - I have a similar structure of how to award points. On the game tab, in the points for buy-in, put a 1. Do the same for points for hits. Then, in the points for playing, you can put switch(r,1,19,2,17,3,15,4,13,5,11,6,9,7,7,8,5,9,3,10,1).  At the end of the game, you can see the points earned for the night, and see that even though the switch has the points one less than what's earned for the rank, it will be taken care of with the point awarded for buying in to the game.

If you don't want to go the way I sugggested, I know that there is a way to incorporate everything into the points for playing, but I'm not entirely sure how. I believe you could get it with switch(r,1,19,2,17,3,15,4,13,5,11,6,9,7,7,8,5,9,3,10,1)+nh+1 (could someone confirm or correct me please?)
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!

TrainerBBD

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Need Help with Point Formula Please
« Reply #2 on: June 07, 2011, 11:02:05 AM »
Sweeeeeet ... I will try that tonight when I get home.

I knew there must be a way but I am just new at adding the point formula's to TD so wasn't sure how.

Thanks for the help !!!  ;D

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: Need Help with Point Formula Please
« Reply #3 on: June 07, 2011, 11:05:35 AM »
You've pretty much got it, Magic_fubu.  There are several ways to do it:

switch(r, 1, 19, 2, 17, 3, 15, 4, 13, 5, 11, 6, 9, 7, 7, 8, 5, 9, 3, 10, 1) + 1 + nh

This gives one less point than the ranks are supposed to get, but then adds 1 point (which everyone receives) so that those that aren't ranked in the top 10 get the 1 point.  + nh gives one point for each hit a player makes (each knockout), which is what I assume "Hit man = 1" means.

The other way to do it is very similar:

switch(r, 1, 20, 2, 18, 3, 16, 4, 14, 5, 12, 6, 10, 7, 8, 8, 6, 9, 4, 10, 2, 1) + nh

This is the same except we give the proper points in the switch(), and add a final parameter to it: ", 1".  That's the "else" clause, which says if they don't match anything in the switch, then return this value.  So, for those that aren't in the top 10, they get 1 point from the switch statement.

And another way:

if(r < 11, (11 - r) * 2, 1) + nh

TrainerBBD

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Need Help with Point Formula Please
« Reply #4 on: June 07, 2011, 12:34:09 PM »
WOW .... So many different ways to do it.

I will put in the information and try a test tourney tonight.

Thanks for the help !!! Much appreciated.

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Need Help with Point Formula Please
« Reply #5 on: June 07, 2011, 04:49:33 PM »
That's one of the things that I love about the program - the versatility of it. There's so many ways to do the same thing for most of the program.
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!