From b7a5b8649bce6f3298982f0b3d47c374b6161602 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 28 May 2019 21:30:15 +0200 Subject: [PATCH] Changed paragraph about tiebreaks --- Showing-a-ranking.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Showing-a-ranking.md b/Showing-a-ranking.md index 7547cc3..88bfeeb 100644 --- a/Showing-a-ranking.md +++ b/Showing-a-ranking.md @@ -2,11 +2,7 @@ You can show a ranking by using the `Tournament::getRanking()` method. First, start by importing your sws-file. Using the resulting Sws-object you can navigate to the tournament and call the `Tournament::getRanking()` method. -The `Tournament::getRanking()` method takes 1 optional boolean parameter. If `true` libpairtwo will provide a ranking using the American System. If `false` or not provided it will use the normal ranking. In any case the shifting points from the sws-file will be applied. - -**Todo: Implement shifting points** - -`Tournament::getRanking()` returns an array of Player objects. This allows you to iterate through the array using foreach and display the required fields. +`Tournament::getRanking()` returns an array of Player objects. This allows you to iterate through the array using foreach and display the required fields. `Tournament::getRanking();` takes account of the tiebreaks. The order of tiebreaks gets loaded from your pairing file. The tiebreaks are calculated when getRanking() is called. Only the required tiebreaks are calculated. If tiebreak 1 is enough to provide the full ranking, tiebreak 2 does not get calculated. ## Example