mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 14:36:57 +01:00
Merge branch 'task/soccer-kashdan' into task/remove-swsclass
This commit is contained in:
commit
93752af11c
@ -1,15 +1,16 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## vx.x.x (Released: xx-xxx-xx)
|
## vx.x.x (Released: xx-xxx-xx)
|
||||||
|
* NEW FEATURE: Soccer Kashdan (aka: kashdan using 3-1-0 scoring)
|
||||||
* CHANGE: Deprecated `sws::class` was removed
|
* 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
|
* NEW FEATURE: `Player::getPlayedGames()` to return the number of played games
|
||||||
* BUGFIX: Calculating Buchholz tiebreak always returned 0
|
* BUGFIX: Calculating Buchholz tiebreak always returned 0
|
||||||
* BUGFIX: Calculating Mutual Result only took account of last tiebreak instead all previous
|
* 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
|
* BUGFIX: `Round::getBye()` did not return bye players
|
||||||
|
|
||||||
## v1.0
|
## v1.0 (Released: 03-jun-2019)
|
||||||
* Initial release
|
* Initial release
|
@ -16,6 +16,7 @@ class Tiebreak extends Enum
|
|||||||
const BuchholzCut = "Buchholz Cut";
|
const BuchholzCut = "Buchholz Cut";
|
||||||
const Sonneborn = "Sonneborn-Berger";
|
const Sonneborn = "Sonneborn-Berger";
|
||||||
const Kashdan = "Kashdan";
|
const Kashdan = "Kashdan";
|
||||||
|
const SoccerKashdan = "Soccer Kashdan";
|
||||||
const Cumulative = "Cumulative";
|
const Cumulative = "Cumulative";
|
||||||
const Between = "Mutual Result";
|
const Between = "Mutual Result";
|
||||||
const Koya = "Koya";
|
const Koya = "Koya";
|
||||||
|
@ -314,6 +314,9 @@ class Tournament extends Tiebreaks
|
|||||||
case Tiebreak::Kashdan:
|
case Tiebreak::Kashdan:
|
||||||
return $this->calculateKashdan($player);
|
return $this->calculateKashdan($player);
|
||||||
break;
|
break;
|
||||||
|
case Tiebreak::SoccerKashdan:
|
||||||
|
return $this->calculateSoccerKashdan($player);
|
||||||
|
break;
|
||||||
case Tiebreak::Cumulative:
|
case Tiebreak::Cumulative:
|
||||||
return $this->calculateCumulative($player);
|
return $this->calculateCumulative($player);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user