Implemented results

This commit is contained in:
Jeroen De Meerleer 2019-09-25 14:56:16 +02:00
parent ae8121959e
commit 08140661dd
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

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