From bb7086c3ec25d37e2b52b728992c3ba022ca29d1 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 25 Dec 2019 13:55:14 +0100 Subject: [PATCH] META: Documentation fixes --- CHANGELOG.md | 4 +++- src/Player.php | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 001a823..ffac243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ * CHANGE: Some fields has been renamed to match coding guideline (Please see [1ab96fa](https://github.com/JeroenED/libpairtwo/commit/1ab96fa04782c1b0f2b6bb9d1bac8397a74ab38e) for more info) * CHANGE: Logo has been redesigned * CHANGE: Phpdoc is used again for docs generation -* REMOVED: `Tiebreak::American` and all its uses were removed (Please see [a6015ae](https://github.com/JeroenED/libpairtwo/commit/a6015ae8169f0973f4937605d0f807aacc233630) for more info) +* CHANGE: `Tiebreak::American` and all its uses were removed (Please see [a6015ae](https://github.com/JeroenED/libpairtwo/commit/a6015ae8169f0973f4937605d0f807aacc233630) for more info) +* CHANGE: `Tournament::calculateSonneborn()` did not use a virtual opponent for bye results +* BUGFIX: `Tournament::calculateMutualResult()` returned a value even it not all players did not play each other ## v1.2 (Release: 28-sep-2019) * NEW READER: `Readers\Swar-4` for reading out files created with SWAR version 4. diff --git a/src/Player.php b/src/Player.php index 84309a6..f544fe7 100644 --- a/src/Player.php +++ b/src/Player.php @@ -238,10 +238,9 @@ class Player /** * Returns the points of a virtual player as described in the Fide Handbook C.02 chapter 13.15.2. * - * 1 Point is awarded for winning - * 0.5 points are awarded for draw - * Unplayed results are conside + * Return the same score for all rounds until $byeround and added with a half point for each subsequent round * + * @param int $byeround * @return float */ public function calculatePointsForVirtualPlayer(int $byeround): float