2019-06-01 16:39:58 +02:00
|
|
|
<?php
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* Enum Tiebreak
|
|
|
|
*
|
|
|
|
* List of all compatible tiebreaks
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-06-01 16:39:58 +02:00
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Enums;
|
|
|
|
|
|
|
|
use MyCLabs\Enum\Enum;
|
|
|
|
|
2019-06-19 21:54:19 +02:00
|
|
|
/**
|
|
|
|
* Enum Tiebreak
|
|
|
|
*
|
|
|
|
* List of all compatible tiebreaks
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-06-01 16:39:58 +02:00
|
|
|
class Tiebreak extends Enum
|
|
|
|
{
|
|
|
|
const None = "";
|
|
|
|
const Keizer = "Keizer";
|
|
|
|
const Points = "Points";
|
|
|
|
const American = "American";
|
|
|
|
const Buchholz = "Buchholz";
|
|
|
|
const BuchholzMed = "Buchholz Median";
|
|
|
|
const BuchholzCut = "Buchholz Cut";
|
|
|
|
const Sonneborn = "Sonneborn-Berger";
|
|
|
|
const Kashdan = "Kashdan";
|
2019-06-05 15:03:52 +02:00
|
|
|
const SoccerKashdan = "Soccer Kashdan";
|
2019-06-01 16:39:58 +02:00
|
|
|
const Cumulative = "Cumulative";
|
|
|
|
const Between = "Mutual Result";
|
|
|
|
const Koya = "Koya";
|
|
|
|
const Baumbach = "Most wins"; // Ref: https://en.wikipedia.org/wiki/Tie-breaking_in_Swiss-system_tournaments#Most_wins_(Baumbach) Please tell me why?
|
|
|
|
const AveragePerformance = "Average performance";
|
|
|
|
const Performance = "Performance";
|
|
|
|
const Aro = "Average Rating";
|
|
|
|
const AroCut = "Average Rating Cut";
|
|
|
|
const BlackPlayed = "Black played";
|
|
|
|
const BlackWin = "Black Winned";
|
|
|
|
const Testmatch = "Testmatch";
|
|
|
|
const Drawing = "Drawing of lot";
|
|
|
|
}
|