Author Topic: Need help on Stats-Programming  (Read 1978 times)

Steve

  • Newbie
  • *
  • Posts: 4
    • View Profile
Need help on Stats-Programming
« on: July 02, 2010, 08:56:08 AM »
Hi there,

as my English is not so good, I need urgently help !

We have 20 league-players and 5-10 changing guest players.
12 days per year and 3 rounds per day (I have programed each round as one tournament yet)
"So in total 36 tournament days"
All player will receive points and money.

Here is the scoring per tournament:
FINAL TABLE:
1st. 100 points
2nd. 50 p
3rd. 35
4th. 25
5th. 20
6th. 15
7th. 10
8th.  5

But only those players whom participate at minimum of 24 tournaments per year will have the right to enter final-leaguescoring at last.
But meanwhile  I have to show monthly scoring too.

Winner will be the one with the best average overall scoring and so on.

Hope someone understand the system !!!!!?????

If not just let me know and I try to explain again, OK?!


So as I have absolutly no idea how to do, please help.

Best regards

Steve from Germany

PS: is anyone allready working on a German version?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Need help on Stats-Programming
« Reply #1 on: July 02, 2010, 10:29:53 AM »
Points for Playing:

switch(r, 1, 100, 2, 50, 3, 35, 4, 25, 5, 20, 6, 15, 7, 10, 8, 5)

Tournament Scoring:

points

Overall Score 1:

average(scores)

Overall Score 2:

if(count(scores) > 23, average(scores), 0)

Overall Score 1 will display the player's average score over all of the tournaments they have played.  Overall Score 2 will display the same value, but ONLY if the player has participated in at least 24 tournaments.  Otherwise it will display "0".  So Overall Score 1 can be the "running" average, while "Overall Score 2" will be their final average.