From 370088d9b3eef3e7735f12c19b0ea8873283f7b5 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 14 Jun 2019 08:44:36 +0200 Subject: [PATCH] Updated a.2 Showing the pairings of a specific round (markdown) --- a.2-Showing-the-pairings-of-a-specific-round.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a.2-Showing-the-pairings-of-a-specific-round.md b/a.2-Showing-the-pairings-of-a-specific-round.md index 7362aab..bb679fb 100644 --- a/a.2-Showing-the-pairings-of-a-specific-round.md +++ b/a.2-Showing-the-pairings-of-a-specific-round.md @@ -24,7 +24,7 @@ foreach($pairings 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;