mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-15 19:37:51 +01:00
Updated Showing the pairings of a specific player (markdown)
parent
721cb1f742
commit
27941cdd1e
@ -12,9 +12,7 @@ use JeroenED\Libpairtwo\Player;
|
|||||||
use JeroenED\Libpairtwo\Enums\Result;
|
use JeroenED\Libpairtwo\Enums\Result;
|
||||||
|
|
||||||
$sws = Sws::readSws('Tata-Steel-2018.sws');
|
$sws = Sws::readSws('Tata-Steel-2018.sws');
|
||||||
|
|
||||||
$magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament());
|
$magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament());
|
||||||
|
|
||||||
$magnus = $magnusses[0];
|
$magnus = $magnusses[0];
|
||||||
|
|
||||||
foreach ($magnus->getPairings() as $pairing) {
|
foreach ($magnus->getPairings() as $pairing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user