Storyboard: The goal of this project was to create a program in which a magic 8 Ball would ask the user to ask a question and would respond to that yes or no question with a answer randomly chosen from a list of possible answers made by the programmer.
Logic: I used the paint and pen functions to draw a sprite that resembled an 8 ball. Then, I made the 8 ball say things like “Hi, ask me a question”. The input bar then popped up. I used a variable called “random” to create a command that corresponded to all numbers from 1 to 5. I then used if blocks to say that if the number chosen was a specific number, the 8 ball would have a specific comment in response to the question asked by the user.
Steps:
1. Create a Sprite
2. Ask the question to the user
3. Create a variable called “Random #”
4. Create a operator that chooses a number from 1 to 5
5. Make 5 if else blocks that connect responses to one of these 5 numbers
Problems: I did not have many issues.
Links: