Magic 8 Ball

MoonCampaign by Vedith (10 years)

At Moonpreneur, we empower students to turn ideas into reality through hands-on project & product building.
Our MoonCampaigns highlight their creativity, public speaking, presentation skills, and teamwork.

Quarterly MoonCampaigns: Four Innovation and Leadership Showcases Annually by
Every Student—Thousands of Inspiring Learning Stories Unveiled.

Feature Image

Likes

Rating

62 days left

Your support will go a long way in encouraging Vedith and taking their innovation Magic 8 Ball to new heights.
Magic 8 Ball
terms and conditions
:

Magic 8 Ball

:

Vedith Gowri

:

Show n Tell

:

Show n Tell

:

Coming Soon

About the Innovator

The Magic 8 Ball project is a digital version of the classic fortune-telling toy, designed using a Micro:bit. It combines randomness and gesture detection to provide answers to the user’s questions. This project uses a simple yet effective code structure to deliver a fun and engaging experience. The core of the code lies in two important commands. The first is random.randint, which generates a random number between 1 and 8. This command ensures that the responses provided by the magic 8 ball are unpredictable and diverse. The second key command is if accelerometer.was_gesture('shake'), which detects when the Micro:bit is shaken. This gesture triggers the random number generation, making the experience interactive and tactile. When you shake the Micro:bit, it generates a random number corresponding to one of eight pre-programmed answers, which are displayed on the screen. Each number aligns with a classic Magic 8 Ball response, such as “Yes,” “No,” or “Ask Again Later.” The combination of randomness and gesture-based activation creates a dynamic user experience that mimics the real Magic 8 Ball in a digital format. This project showcases the power of simple coding commands to create interactive and fun applications. By leveraging the accelerometer and randomness, the Magic 8 Ball delivers a delightful and nostalgic experience, blending technology and creativity seamlessly.

Want your child to be part of an innovative and creative competition?

STORY

Total Views:
magic 8 ball

Having trouble viewing?

Open in a New Tab
Every child is gifted. Discover how yours can innovate and lead

Comments

You Might Also Like

Every child is gifted. Discover how yours can innovate and lead