Added SoccerKashdan as supported Tiebreak

This commit is contained in:
Jeroen De Meerleer 2019-06-05 14:55:15 +02:00
parent b90036a8ff
commit bfa8e062f3
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 4 additions and 0 deletions

View File

@ -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";

View File

@ -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;