As a user, when the page loads, I should see the forest and the basket sections. And in the forest section I should see a button below the Forest heading that says Pick Mushroom.
AC
WHEN the user clicks on the Pick Mushroom button
THEN a randomly selected mushroom will be added to the basket section.
Dev Notes
Create function called pickAMushroomEvent
use a forEach to loop through mushrooms
if (response.isPoisonous = true) {
basket.splice(0, 2)}
else if (response.isDeadly = true) {
basket = [] }
else if (response.isMagic = true) {
addNonSpecialMushrooms() }
else {
run pickAMushroom()}
User Story
As a user, when the page loads, I should see the forest and the basket sections. And in the forest section I should see a button below the Forest heading that says
Pick Mushroom
.AC
WHEN the user clicks on the
Pick Mushroom
button THEN a randomly selected mushroom will be added to the basket section.Dev Notes