Moonpreneur Icon
Student engaged in interactive online math learning session with headphones

My Dice

MoonCampaign by Clarice (8 years)

Hello everyone! My project is a My Dice made with Python and a micro. When I shake the micro, it randomly chooses a number from 1 to 6 and displays a different face or image for each number. Number 1 shows an angry face, number 2 shows a sad face, number 3 shows a smiling face, number 4 shows a fabulous face, number 5 shows another funny face, and number 6 shows a happy face. My code uses while True, the accelerometer shake gesture, variables, conditions, and the display.show() function. I also learned how to use sleep() to control timing.

👍

Views:

Your rating and comment will go a long way in encouraging Clarice and taking their innovation My Dice to new heights.

terms and conditions

Clarice is already a part of this story

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

All about Clarice project

Hello everyone! Today, I am excited to share the story of my project, called My Dice. I created this fun and interactive project using Python and a micro. I wanted to make a dice that could do something more exciting than simply showing numbers. Instead of displaying ordinary dots, my dice shows different funny and colorful faces whenever it is shaken.

The idea is simple. When I shake the micro, its accelerometer detects the shaking movement. The program then randomly chooses a number between 1 and 6. Each number is connected to a different face. Number 1 shows an angry face, number 2 shows a sad face, number 3 shows a smiling face, number 4 shows a fabulous face, number 5 shows another funny face, and number 6 shows a happy face. This makes every shake surprising because I never know which face will appear next.

Launch your child's
success today

What people
have to say

See what people around the world are saying about Clarice My Dice project

Preparing Kids for the AI-Driven Future

Everything parents need to know about building future-ready skills in an AI-powered world.

Why is preparing children for an AI-driven future more important than ever?
What are the key skills AI can never replace?
How does MoonCampaign help children build these future-ready skills?
How does project-based learning prepare kids better than traditional learning?

You Might Also Like

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