Introduction
This app makes an abstract version of a real magic 8 ball, with many of the similar features.
Reflection
Q:This app is an abstraction of the real Magic 8 Ball game. You’ve created a model of the real Magic 8 Ball game. In the real game you shake a real ball that contains messages that somehow float into view when the shaking stops. Describe how the various features of your model represent features of the the real game.
A: Multiple features are represented in the model of the real game. One is the randomness of the real game, you never know the 8 ball is going to answer. It does this after shaking the device, just like after what happens when shaking a real magic 8 ball. Another feature it has in common with the original game is the answers it gives. It gives answers that vaguely answer the question you may have asked.
Q:This app makes use of randomness -- it picks a random message from a list of options. Suppose you were going to create an app to model a coin flip. How might you use randomness in that case?
A: You would use randomness in that model by having a list of two option, heads or tails. Then make blocks that choose out of the two answers at random. It really is the same as the magic 8 ball model, but with only having the two possible options.
A: Multiple features are represented in the model of the real game. One is the randomness of the real game, you never know the 8 ball is going to answer. It does this after shaking the device, just like after what happens when shaking a real magic 8 ball. Another feature it has in common with the original game is the answers it gives. It gives answers that vaguely answer the question you may have asked.
Q:This app makes use of randomness -- it picks a random message from a list of options. Suppose you were going to create an app to model a coin flip. How might you use randomness in that case?
A: You would use randomness in that model by having a list of two option, heads or tails. Then make blocks that choose out of the two answers at random. It really is the same as the magic 8 ball model, but with only having the two possible options.
Design
The design of this app is overall simple, only having an image, a list where you can select the method of the 8 ball giving it's answer.
When the phone is shaken it will give it's answer. It does this by using the accelerator sensor. The blocks below show that when the phone is shaken it will choose at random, one of the global predictions and give the answer. The global predictions list is shown to the left, and allows for the app to mimic the random answers a magic 8 ball gives.
The next part is the feedback menu, and what is associated with it. The feedback menu allows the user to choose their method of how the 8 ball gives an answer to them. Whether this be through speech or text. As shown on the left figure below, the feedback is set to nothing. The feedback menu is a list picker, which allows for many options to be picked through a list. As shown on the right, after an option on the list picker is chosen, it will change the text from "feedback menu" to whatever was chosen, as well as changing the global feedback to whatever was chosen.
The next part is how the app actually display the magic 8 ball's answer to the user. As shown in the blocks below if "Speech" equals the global feedback, it will use text to speech to give the current prediction. If "Sound" equals the global feedback it will just display the answer as text, and you wont be able to hear the answer, but it will play a sound.
Downloads
![](http://www.weebly.com/weebly/images/file_icons/file.png)
magic8ball.aia | |
File Size: | 77 kb |
File Type: | aia |
![](http://www.weebly.com/weebly/images/file_icons/image.png)
8balqrcode.png | |
File Size: | 4 kb |
File Type: | png |