Skip to content

Commit

Permalink
Merge branch 'trophy2024' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisfabri authored Jul 5, 2024
2 parents 6798e87 + 43858c2 commit 6de960a
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public String getName() {

@Override
public String getDescription() {
return "Diese Punktevergabe entspricht der Punktevergabe für Indoorwettkämpfe der ILS ohne Finals";
return "Diese Punktevergabe entspricht der Punktevergabe für Indoorwettkämpfe der ILS ohne Finals";
}

private static final double Epsilon = 0.005;
Expand Down Expand Up @@ -405,10 +405,18 @@ protected double getPoints(int time, int rec, int rank, int amount, Strafe s, in
protected static final int[] POINTS = new int[] { 20, 18, 16, 14, 13, 12, 11, 10, 8, 7, 6, 5, 4, 3, 2, 1 };

protected double getPoints(int rank) {
if ((rank > 0) && (rank <= POINTS.length)) {
return POINTS[rank - 1];
return getPoints(rank, 1);
}

protected double getPoints(int rank, int amount) {
if (!((rank > 0) && (rank <= POINTS.length))) {
return 0;
}
double sum = 0;
for (int x = rank - 1; x < Math.min(rank + amount - 1, POINTS.length); x++) {
sum += POINTS[x];
}
return 0;
return Math.round(100.0 * sum / amount) / 100.0;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,5 +285,5 @@
4;"rhzvvrymbe, pncxcwlyzn";"rhzvvrymbe";"pncxcwlyzn";"";"kjihqfwbzv";"";"U19 - 50m Manikin Carry - Finale";"female";"65";20,00;14,00;6,00;"65";"nein";"50m Manikin Carry";4;0:38,07;14,00;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
5;"scipfobrxo, sosaqamlui";"scipfobrxo";"sosaqamlui";"";"yaeiigdptw";"";"U19 - 50m Manikin Carry - Finale";"female";"158";13,00;13,00;7,00;"158";"nein";"50m Manikin Carry";5;0:39,49;13,00;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
6;"xmtazezizw, mumybueqoi";"xmtazezizw";"mumybueqoi";"";"myelaiimqt";"";"U19 - 50m Manikin Carry - Finale";"female";"228";10,00;12,00;8,00;"228";"nein";"50m Manikin Carry";6;0:39,63;12,00;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
7;"xqdadyhxvj, rcnnjlebtw";"xqdadyhxvj";"rcnnjlebtw";"";"wedgvuqnyz";"";"U19 - 50m Manikin Carry - Finale";"female";"66";13,00;11,00;9,00;"66";"nein";"50m Manikin Carry";7;0:40,06;11,00;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
7;"aeblpgewfc, nxxcomlwbm";"aeblpgewfc";"nxxcomlwbm";"";"wapzlixhov";"";"U19 - 50m Manikin Carry - Finale";"female";"67";16,00;11,00;9,00;"67";"nein";"50m Manikin Carry";7;0:40,06;11,00;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
7;"xqdadyhxvj, rcnnjlebtw";"xqdadyhxvj";"rcnnjlebtw";"";"wedgvuqnyz";"";"U19 - 50m Manikin Carry - Finale";"female";"66";13,00;10,50;9,50;"66";"nein";"50m Manikin Carry";7;0:40,06;10,50;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
7;"aeblpgewfc, nxxcomlwbm";"aeblpgewfc";"nxxcomlwbm";"";"wapzlixhov";"";"U19 - 50m Manikin Carry - Finale";"female";"67";16,00;10,50;9,50;"67";"nein";"50m Manikin Carry";7;0:40,06;10,50;" ";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";;
Loading

0 comments on commit 6de960a

Please sign in to comment.