Build a Magic 8 Ball app that will speak a random response from a list of responses
How to create a list and add items to it
List: a data type that contains "lists" of data
What components or blocks would we need to be able to create a Magic 8 Ball app?
Image Component
Directions Label
Answer Label
Answer Button
Sound Component
Build a List
Initialize a variable “Answer List”
Drag out a list component
Remove numbers
Add Text Blocks and answers
Answer Button
Set Answer Label to Random Item from Answer List
Play a Sound
change the predictions that were used in the tutorial to your own predictions, perhaps some that are more humorous.
Have the app speak a random answer
Add a Text-to-Speech component
Have the device speak the answer after the device is shaken.
Use the “from answer label” get Text block
When you shake the phone, have the app give a random answer.
*You will need the Thunkable App for your phone to test this challenge
Add an accelerometer component
When the Accelerometer is shaking
A random answer from the Answer list will show in the Answer Label.