Created
October 20, 2016 08:15
-
-
Save nikeshashar/1eec9a2b6bb270f489becc6dae76669c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Challenge setup | |
| Specification: | |
| Thermostat starts at 20 degrees | |
| You can increase the temperature with the up button | |
| You can decrease the temperature with the down button | |
| The minimum temperature is 10 degrees | |
| If power saving mode is on, the maximum temperature is 25 degrees | |
| If power saving mode is off, the maximum temperature is 32 degrees | |
| Power saving mode is on by default | |
| You can reset the temperature to 20 by hitting the reset button | |
| The thermostat should colour the display based on energy usage - < 18 is green, < 25 is yellow, otherwise red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment