+sub calc_rating_double {
+ my ($rating1, $rd1, $rating2, $rd2, $rating3, $rd3, $rating4, $rd4, $score1, $score2) = @_;
+ my $result = `/srv/foosball.sesse.net/foosrank $rating1 $rd1 $rating2 $rd2 $rating3 $rd3 $rating4 $rd4 $score1 $score2`;
+ chomp $result;
+ my ($newr1, $newrd1) = split / /, $result;
+
+ $newrd1 = 30.0 if ($newrd1 < 30.0);
+
+ return ($newr1, $newrd1);
+}
+
+