Open ToddSpainhour opened 4 years ago
The user should see the screen divided into four parts. Eat, Sleep, Play, and Fight.
WHEN the page loads THEN i should see a block titled "Sleep" in the bottom corner AND it should have two buttons AND one should say "Nap" AND the other should say "Deep Slumber" AND it should display the "Energy" score
The Sleep component should appear in the lower right quadrant. It should have a private variable called energy. This variable should be set to 50 on page load. This module should have 2 buttons. One should be for a nap and should add 50 to energy when pressed. The other button should be for a deep slumber and add 60 to sleep when pushed.
The quadrant should display the name, energy score, and the two buttons. Each time a button is clicked the quadrant should be re-drawn to show the correct energy score. The Energy score should NEVER be larger than 100.