mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
Implemented results
This commit is contained in:
parent
ae8121959e
commit
08140661dd
@ -272,31 +272,22 @@ class Swar4 implements ReaderInterface
|
|||||||
case '01':
|
case '01':
|
||||||
$result = Result::absent;
|
$result = Result::absent;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case '0010':
|
||||||
$result = Result::adjourned;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
$result = Result::bye;
|
$result = Result::bye;
|
||||||
break;
|
break;
|
||||||
case 6:
|
case '2000':
|
||||||
$result = Result::draw;
|
$result = Result::draw;
|
||||||
break;
|
break;
|
||||||
case 8:
|
case '4000':
|
||||||
$result = Result::drawadjourned;
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
$result = Result::won;
|
$result = Result::won;
|
||||||
break;
|
break;
|
||||||
case 12:
|
case '04':
|
||||||
$result = Result::wonforfait;
|
$result = Result::wonforfait;
|
||||||
break;
|
break;
|
||||||
case 13:
|
case '40':
|
||||||
$result = Result::wonadjourned;
|
|
||||||
break;
|
|
||||||
case 14:
|
|
||||||
$result = Result::wonbye;
|
$result = Result::wonbye;
|
||||||
break;
|
break;
|
||||||
case 0:
|
case '00':
|
||||||
default:
|
default:
|
||||||
$result = Result::none;
|
$result = Result::none;
|
||||||
break;
|
break;
|
||||||
@ -305,7 +296,7 @@ class Swar4 implements ReaderInterface
|
|||||||
$ptn++;
|
$ptn++;
|
||||||
}
|
}
|
||||||
fclose($swshandle);
|
fclose($swshandle);
|
||||||
|
$this->getTournament()->pairingsToRounds();
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user