2019-02-11 22:41:44 +01:00
|
|
|
<?php
|
2020-08-02 21:51:59 +02:00
|
|
|
|
2019-02-11 22:41:44 +01:00
|
|
|
/**
|
2019-06-19 19:49:39 +02:00
|
|
|
* Enum Gameresult
|
|
|
|
*
|
|
|
|
* List of all compatible gameresults
|
|
|
|
*
|
2020-08-02 21:51:59 +02:00
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
2019-02-11 22:41:44 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Enums;
|
|
|
|
|
|
|
|
use MyCLabs\Enum\Enum;
|
|
|
|
|
2019-06-19 19:49:39 +02:00
|
|
|
/**
|
|
|
|
* Enum Gameresult
|
|
|
|
*
|
|
|
|
* List of all compatible gameresults
|
|
|
|
*
|
2020-08-02 21:51:59 +02:00
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
* @category Main
|
|
|
|
* @package Libpairtwo
|
|
|
|
* @copyright Copyright (c) 2018-2019 Jeroen De Meerleer <schaak@jeroened.be>
|
2019-06-19 19:49:39 +02:00
|
|
|
*/
|
2019-02-11 22:41:44 +01:00
|
|
|
class Gameresult extends Enum
|
|
|
|
{
|
2020-08-02 21:51:59 +02:00
|
|
|
public const BLACK_WINS = '0-1';
|
|
|
|
|
|
|
|
public const BLACK_WINS_FORFAIT = '0-1 FF';
|
|
|
|
|
|
|
|
public const BOTH_LOSE_FORFAIT = '0-0 FF';
|
|
|
|
|
|
|
|
public const BOTH_WIN_ADJOURNED = '1-1 A';
|
|
|
|
|
|
|
|
public const DRAW = '0.5-0.5';
|
|
|
|
|
|
|
|
public const DRAW_ADJOURNED = '0.5-0.5 A';
|
|
|
|
|
|
|
|
public const NONE = '-';
|
|
|
|
|
|
|
|
public const WHITE_DRAWS_BLACK_LOSE_ADJOURNED = '0.5-0';
|
|
|
|
|
|
|
|
public const WHITE_DRAWS_BLACK_WINS_ADJOURNED = '0.5-1 A';
|
|
|
|
|
|
|
|
public const WHITE_LOST_BLACK_DRAWS_ADJOURNED = '0-0.5';
|
|
|
|
|
|
|
|
public const WHITE_WINS = '1-0';
|
|
|
|
|
|
|
|
public const WHITE_WINS_BLACK_DRAWS_ADJOURNED = '1-0.5 A';
|
|
|
|
|
|
|
|
public const WHITE_WINS_FORFAIT = '1-0 FF';
|
2019-03-20 12:46:46 +01:00
|
|
|
}
|