mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-22 04:11:22 +01:00
Merge branch 'task/soccer-kashdan' into task/remove-swsclass
This commit is contained in:
commit
93752af11c
@ -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
|
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user