From 1cd31377f13669a3092e99707c508afc872f2fad Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 14 Jun 2019 08:45:47 +0200 Subject: [PATCH] Updated a.3 Showing the pairings of a specific player (markdown) --- a.3-Showing-the-pairings-of-a-specific-player.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a.3-Showing-the-pairings-of-a-specific-player.md b/a.3-Showing-the-pairings-of-a-specific-player.md index bbe99fa..0fef217 100644 --- a/a.3-Showing-the-pairings-of-a-specific-player.md +++ b/a.3-Showing-the-pairings-of-a-specific-player.md @@ -22,7 +22,7 @@ foreach ($magnus->getPairings() as $pairing) { $opponent = $pairing->getOpponent()->getName(); $color = $pairing->getColor()->getKey(); 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; } elseif ($pairing->getResult() == Result::absent) { echo $player . ' is absent' . PHP_EOL;