Merge branch 'task/soccer-kashdan' into task/remove-swsclass

This commit is contained in:
Jeroen De Meerleer 2019-06-05 15:00:30 +02:00
commit 93752af11c
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 8 additions and 3 deletions

View File

@ -1,15 +1,16 @@
# CHANGELOG
## vx.x.x (Released: xx-xxx-xx)
* NEW FEATURE: Soccer Kashdan (aka: kashdan using 3-1-0 scoring)
* CHANGE: Deprecated `sws::class` was removed
## v1.0.2
## v1.0.2 (Released: 05-jun-2019)
* NEW FEATURE: `Player::getPlayedGames()` to return the number of played games
* BUGFIX: Calculating Buchholz tiebreak always returned 0
* BUGFIX: Calculating Mutual Result only took account of last tiebreak instead all previous
## v1.0.1
## v1.0.1 (Released: 04-jun-2019)
* BUGFIX: `Round::getBye()` did not return bye players
## v1.0
## v1.0 (Released: 03-jun-2019)
* Initial release

View File

@ -16,6 +16,7 @@ class Tiebreak extends Enum
const BuchholzCut = "Buchholz Cut";
const Sonneborn = "Sonneborn-Berger";
const Kashdan = "Kashdan";
const SoccerKashdan = "Soccer Kashdan";
const Cumulative = "Cumulative";
const Between = "Mutual Result";
const Koya = "Koya";

View File

@ -314,6 +314,9 @@ class Tournament extends Tiebreaks
case Tiebreak::Kashdan:
return $this->calculateKashdan($player);
break;
case Tiebreak::SoccerKashdan:
return $this->calculateSoccerKashdan($player);
break;
case Tiebreak::Cumulative:
return $this->calculateCumulative($player);
break;