X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Fdo-finish-tournament.pl;fp=html%2Fdo-finish-tournament.pl;h=bf53b91844dddeff86a8da74243ce84512584b72;hp=bea25b424f544cb13436759832f6c94e1a86da26;hb=bd55f6835567a11e5a490d4a872bc778c96d1e83;hpb=b37186a18ef4c10cf13a5d44603f9d41a17e2883 diff --git a/html/do-finish-tournament.pl b/html/do-finish-tournament.pl index bea25b4..bf53b91 100755 --- a/html/do-finish-tournament.pl +++ b/html/do-finish-tournament.pl @@ -35,13 +35,13 @@ $dbh->disconnect; ccbs::print_see_other('show-tournament.pl?id=' . $tournament); -# gives the usual 100, 91, 83, 76. 65, 61, ... series +# gives the usual 100, 90, 81, 73, 60, 55, ... series sub points_for_place { my $n = shift; if ($n <= 10) { - return 110 - (21/2) * $n + (1/2) * $n * $n; - } elsif ($n <= 65) { - return 65 - $n; + return 111 - (23/2) * $n + (1/2) * $n * $n; + } elsif ($n <= 56) { + return 56 - $n; } else { return 0; }