Last active
June 11, 2018 13:12
-
-
Save AlexPinhasov/479aef96dbfc324db0d06d8cbb4bb93d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Execution Functions | |
private func turnExteriorLightsOn() | |
{ | |
leftFrontLight .isOn = true | |
rightFrontLight.isOn = true | |
leftBackLight .isOn = true | |
rightBackLight .isOn = true | |
} | |
private func checkForBurnedBulbs() | |
{ | |
for lightBulb in bulbs where !lightBulb.isUseable | |
{ | |
Dashborad.display(errorType: .lights) | |
break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment