Moonpreneur Icon

Magic 8 Ball

MoonCampaign by Raunak (7 years)

Raunak introduced his Magic 8-Ball project, coded using MicroPython on the micro:bit. He explained the concept of the Magic 8-Ball as a device that answers yes/no questions randomly. His program uses button press input to generate a random number between 1 and 4 to decide the answer. The code includes conditional statements to display responses like "Yes," "No," "Not at all," or "Sure." Raunak emphasized the importance of randomness by using the random.randint function and proper syntax for button inputs and conditional checks. He acknowledged the usefulness of an else statement to avoid errors. His clear explanation showcased understanding of basic programming logic.

  • 👍
  • 🎁 49 days left

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

Magic 8 Ball

terms and conditions

Our Social Impact - We're transforming education globally with free robotics and math workshops in the US, UK, Canada, and Australia. Our workshops have helped 66,000 students alone in the US plus 14,000 students benefit from our four-week sessions.

Impact of MoonCampaigns

5000+

Innovative MoonCampaigns

20,000+

Minutes of Visual Content

1M+

Unique Video Views

40,000+

Unique Feedbacks

80%

STEM Transformation

95%

Increased Confidence

Learning Journey

  • Moonpreneur STEM Program Student

    Project Name: Magic 8 Ball

  • Skills

    Arduino programming, sensor integration, conditional logic, product design, and more

  • Category

    Show n Tell

Impact of MoonCampaigns

MoonCampaigns highlight student's creativity, public speaking, presentation skills, and teamwork, with an impressive track record that speaks volumes. MoonCampaigns, through quarterly Show & Tell, highlight thousands of inspiring learning stories from Moonpreneur students worldwide.

5000+

Innovative MoonCampaigns

20,000+

Minutes of Visual Content

1M+

Unique Video Views

40,000+

Unique Feedbacks and appreciation to kids from community

80%

parents observed transformational changes in their ward's STEM knowledge and leadership skills

95%

Parents Reported Increased Confidence in their child

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

STORY

Total Views:

Raunak stood before the camera, a little shy but excited. “Hi, my name is Raunak, and my favorite color is blue,” he began. “Today, I’ll show you how I made a Magic 8-Ball using micro:bit and Python.”

He explained the Magic 8-Ball as a fun toy that answers yes or no questions at random. “You ask it a question, then it tells you something like yes, no, or maybe,” Raunak said with a smile.

Raunak shared his screen to show the program. “First, I made the micro:bit listen for a button press,” he explained. “When you press it, the program uses random.randint(1, 4) to pick a number from one to four.” He carefully described how each number corresponds to a different answer: if it’s 1, the micro:bit scrolls ‘Yes’; if 2, it shows ‘No’; if 3, ‘Not at all’; and if 4, ‘Sure.’

He stressed the importance of syntax. “You have to put the quotes and parentheses exactly right for it to work,” he said. Raunak also mentioned using the else statement at the end “to catch anything unexpected and avoid errors.”

With a quick demo, he pressed the button. The micro:bit displayed an answer randomly, just like a real Magic 8-Ball. “It’s cool because every time you press the button, it’s something new!”

His teacher and classmates enjoyed his clear, step-by-step explanation. Raunak’s project showed how simple code and randomness can create a playful, interactive experience. Proud of his work, Raunak encouraged everyone to keep coding and learning.

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

Feedback

See what people around the world are saying about Raunak innovative
Magic 8 Ball project

The Future Belongs to Critical Thinkers

Hard Truth About Future of Work

WEF's Future of Jobs Report 2025 reveals that 40% of employers expect to reduce their workforce where AI can automate tasks . While AI is projected to create 69 million new jobs globally by 2030, it will simultaneously eliminate 83 million positions, particularly in clerical, administrative, and routine cognitive roles. The message is clear: routine tasks are being automated, but critical thinking and communication skills cannot be replaced.


What AI Can Never Replace:
  • Critical Thinking & Analysis

    Rated by 78% of business executives as the most important skill they seek, yet only 34% of college graduates arrive well-prepared in this area

  • Communication Skills

    Essential for collaboration, innovation, and leadership in STEM fields

  • Problem-Solving

    The ability to break down complex, unprecedented challenges and devise creative solutions

  • Adaptability & Resilience

    Mental agility to assess new situations and pivot strategies in rapidly changing environments

MoonCampaign Prepares the Next Generation

When students (ages 7-16) build projects, they're not just learning to code, they're developing the future-proof skills that AI cannot replicate:

  • Technical Skills:

    Arduino programming, sensor integration, conditional logic, and hardware troubleshooting

  • Critical Thinking:

    Analyzing real-world safety problems, designing solutions, and debugging when things don't work as expected

  • Communication:

    Articulating their process, presenting their work, and explaining complex technical concepts in accessible language

  • Digital Marketing & Entrepreneurship:

    Showcasing their innovations publicly, building their personal brand, and learning to pitch their ideas

  • Problem-Solving:

    Overcoming challenges like mixed-up variables and incorrect responses through systematic troubleshooting

You Might Also Like

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