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

Heads And Tails

MoonCampaign by Rishona (9 years)

Hi, I’m Rishona, and my project is a fun Heads and Tails game using the micro:bit. When you press button A, the micro:bit picks a random number—1 or 2—and displays “H” for heads if it’s 1, or “T” for tails if it’s 2. This simple game uses variables, logic, and random number generation to simulate a coin toss digitally. It’s a great way to learn coding basics while having fun with chance and randomness. Perfect for games, decision-making, or just enjoying a quick digital coin flip anytime.

👍

Views:

Your rating and comment will go a long way in encouraging Rishona and taking their innovation Heads And Tails to new heights.

terms and conditions

Rishona 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 Rishona project

Hello! My name is Rishona, and I love swimming and enjoy summer, which is my favorite season. For my show and tell project, I created a Heads and Tails game on the micro:bit, inspired by the classic coin toss we use to make decisions or play games.

The way it works is simple and exciting. When you press button A on the micro:bit, the program randomly selects a number—either 1 or 2—using the micro:bit’s random function. If the number is 1, it shows the letter “H” for heads on the LED display. If the number is 2, it shows “T” for tails. This creates a fair and fun way to flip a virtual coin whenever you need it.

Launch your child's
success today

What people
have to say

See what people around the world are saying about Rishona Heads And Tails 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