mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
Updated a.3 Showing the pairings of a specific player (markdown)
parent
370088d9b3
commit
1cd31377f1
@ -22,7 +22,7 @@ foreach ($magnus->getPairings() as $pairing) {
|
|||||||
$opponent = $pairing->getOpponent()->getName();
|
$opponent = $pairing->getOpponent()->getName();
|
||||||
$color = $pairing->getColor()->getKey();
|
$color = $pairing->getColor()->getKey();
|
||||||
echo $player . ' ' . $pairing->getResult()->getKey() . ' against ' . $opponent . ' using ' . $color . PHP_EOL;
|
echo $player . ' ' . $pairing->getResult()->getKey() . ' against ' . $opponent . ' using ' . $color . PHP_EOL;
|
||||||
} elseif ($pairing->getResult() == Result::bye) {
|
} elseif ($pairing->getResult() == Result::wonbye) {
|
||||||
echo $player . ' is bye' . PHP_EOL;
|
echo $player . ' is bye' . PHP_EOL;
|
||||||
} elseif ($pairing->getResult() == Result::absent) {
|
} elseif ($pairing->getResult() == Result::absent) {
|
||||||
echo $player . ' is absent' . PHP_EOL;
|
echo $player . ' is absent' . PHP_EOL;
|
||||||
|
Loading…
Reference in New Issue
Block a user