mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-15 03:17:51 +01:00
Changed paragraph about tiebreaks
parent
0a15050827
commit
b7a5b8649b
@ -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.
|
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.
|
`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.
|
||||||
|
|
||||||
**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.
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user