ToddSpainhour / tamagotchi

0 stars 0 forks source link

Eat feature #4

Open ToddSpainhour opened 4 years ago

ToddSpainhour commented 4 years ago

The Eat component should appear in the upper left quadrant. It should have a private variable called full. This variable should be set to 100 on page load. This module should have 2 buttons. One should be a healthy food that adds 10 to full when pressed. The other button should be an unhealthy food that subtracts 3 from full when pushed.

The quadrant should display the name, fullness score, and the two buttons. Each time a button is clicked the quadrant should be re-drawn to show the correct fullness score. The Full score should NEVER be larger than 100.

ToddSpainhour commented 4 years ago

User Story

AC (acceptance code)

WHEN the page loads THEN i should see a block titled "Eat" in the upper left corner AND it should have two buttons AND one should say "Healthy Food" AND the other should say "Unhealthy Food" AND it shouls display the "Fullness" score

Dev Notes