Updated Showing the pairings of a specific player (markdown)

Jeroen De Meerleer 2019-05-01 20:13:28 +02:00
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) {