From bfa8e062f3c87fc8c3793fdb13e5e136dc46641c Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 5 Jun 2019 14:55:15 +0200 Subject: [PATCH] Added SoccerKashdan as supported Tiebreak --- src/Enums/Tiebreak.php | 1 + src/Tournament.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Enums/Tiebreak.php b/src/Enums/Tiebreak.php index 50e181c..765702d 100644 --- a/src/Enums/Tiebreak.php +++ b/src/Enums/Tiebreak.php @@ -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"; diff --git a/src/Tournament.php b/src/Tournament.php index 1a46af8..1c75a60 100644 --- a/src/Tournament.php +++ b/src/Tournament.php @@ -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;