DEV Community

loading...
Cover image for Programmable Magic Eight Ball

Programmable Magic Eight Ball

Kyle R McKenna
... and, here, we, go. Writing blogs to share what I have learned and better my own understanding on web development through self research and input from others.
Updated on ・3 min read

....and. here. we. go.

Well I know you didn't ask for it, but....

YouTube Video (3 mins): https://youtu.be/aiIvlvOE3jY
GitHub Repository: https://github.com/Haloren/magicEightBallv2
Try it on Heroku: https://magiceightball-v2.herokuapp.com/

Alt Text

Yeah everything below this is just from the Help? section in the app or you can watch the 3 minute video on YouTube above:

Use the Magic Eight Ball to find answers to your everyday questions,
or decide your own fate by creating your own custom answers to appear when you ask the Magic Eight Ball.

Can't decide where to eat? then make a list of places to go and ask the Eight Ball to decide for you.
Can't decide what movie to watch? then make a list of movies and ask the Eight Ball to decide for you.
What can the Eight Ball help decide for you?

Traditional Eight Ball
Enter a question and "SHAKE THE EIGHT BALL" to get an answer from the Magic Eight Ball.
NOTE: This page can be accessed at any screen by selecting the "HOME" link from the menu bar at the top.
Alt Text

Create a custom List
Use the "CREATE" link from the menu bar at the top.
Filling out the form.
You must include a NAME for your list and at least one ANSWER.
List NAME and each ANSWER can be up to 25 characters long.
You can have up to 20 ANSWERS (like the icosahedron in a Magic Eight Ball)

Update a custom List
Use the "LISTS" link from the menu bar at the top.
Select the list you would like to UPDATE.
NOTE: If no lists have been created you can create a new list by clicking "Create a new list?"
Filling out the form:
List name can remain the same or changed.
Answers can remain the same, be changed, removed, or added to the current list.
You must include a NAME for your list and at least one ANSWER.
List NAME and each ANSWER can be up to 25 characters long.
You can have up to 20 ANSWERS (like the icosahedron in a Magic Eight Ball)
Select the "Update" button to save your changes
Alt Text

Delete a custom List
Use the "LISTS" link from the menu bar at the top.
Select the list you would like to DELETE.
NOTE: If no lists have been created you can create a new list by clicking "Create a new list?"
Select the "Delete" button at the bottom of the page.
Alt Text

Using a Custom List
Enter a question
Choose your answer list from the drop down menu that currently displays "Magic Eight Ball"
Click the "SHAKE THE EIGHT BALL" button to get an answer from your selected custom list.
NOTE: This page can be accessed at any screen by selecting the "HOME" link from the menu bar at the top.
Alt Text

Log Out
Alt Text

If you made it this far, Thanks for reading!

Discussion (0)