The Tournament Director Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
June 19, 2013, 10:06:49 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
17217
Posts in
3152
Topics by
1522
Members
Latest Member:
virtual930
Back to The Tournament Director main site
The Tournament Director Forums
Main
Help Me
Formula for Playing Time
« previous
next »
Pages:
[
1
]
Author
Topic: Formula for Playing Time (Read 973 times)
gilehmerd
Newbie
Posts: 7
Formula for Playing Time
«
on:
May 28, 2008, 07:40:18 PM »
Hello All:
Does anyone know how I write a formula to award 10 points for every hour each player plays in a tournament? The formula should not award points for anything else but "playing Time".
Regards,
gilehmerd
Logged
badbeat
Full Member
Posts: 114
Re: Formula for Playing Time
«
Reply #1 on:
May 28, 2008, 09:26:44 PM »
(playingTime/3600)*10
This will give 10 points per hour including increments. (eg. 10 mins gives 1.67 points)
I hope this is what you want.
Logged
Corey Cooper
Administrator
Hero Member
Posts: 4312
Re: Formula for Playing Time
«
Reply #2 on:
May 28, 2008, 09:29:55 PM »
Building on that: to round to the nearest number of hours:
round(playingTime / 3600) * 10
Replace
round
with
ceil
to round up, or
floor
to round down.
Logged
gilehmerd
Newbie
Posts: 7
Re: Formula for Playing Time
«
Reply #3 on:
May 31, 2008, 03:44:37 PM »
Thank you, it works perfectly..
Logged
senorcj
Newbie
Posts: 3
Re: Formula for Playing Time
«
Reply #4 on:
June 09, 2008, 06:19:27 PM »
Hi, I would like to know how to make formula depending the number of player and the rank they lost
example the 1st: 30% depending number of player . if 100 players the 1st will have 130 points
the second: 20% so 120 points, the 3dr : 15%, the 4 : 10%, the 5 :8%, the 6: 7%, the 7 :6% , the 8 : 5% and the 9 : 4% all the others take the place they were burst out
ex : if 100 players and the players y was burst out in 30 position I want to give him 70 points ( 100 -30), other example y is burst out 54 he will have 46 points ( 100 - 54 )
in my opinion the formula starts in the number of player
Someone could help me to find the formula.
tkx a lot
Logged
Phaze
Sr. Member
Posts: 346
Re: Formula for Playing Time
«
Reply #5 on:
June 10, 2008, 08:27:47 AM »
Hola senorcj
I think this formula will do what you request:
Code:
switch(r, 1, (n * 1.3), 2, (n * 1.2), 3, (n * 1.15), 4, (n * 1.1), 5, (n * 1.07), 6, (n * 1.07), 7, (n * 1.06), 8, (n * 1.05), 9, (n * 1.04)) + IF(r > 9, (n - r))
Logged
senorcj
Newbie
Posts: 3
Re: Formula for Playing Time
«
Reply #6 on:
June 17, 2008, 02:11:38 PM »
Great,great,great you re great. The only pb i ve is to do the global score.. Formula doesn t add all the scor and the number of participations stays 0.
Thanks
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main
-----------------------------
=> Suggestions
=> Help Me
=> Templates, Layouts and Sounds
=> General Discussion
=> Beta Testing
Loading...