MasterAI Academy · Prompt Lab
PRIMARY DEMO

Interactive P4–P6 beginner coding sandbox

Three step-by-step challenges covering the core concepts of the Education Bureau (EDB) "Enriched Module on Coding Education for Upper Primary": sequence, loops and conditions. Students click blocks to build a program and watch the robot act it out on the playground straight away.

CHALLENGE 1 · SEQUENCE

🐢 Walk the grid

Get the robot from the 🟢 start to the ⭐ finish, one step after another. Use only the "Move forward" and "Turn" blocks.

CHALLENGE 2 · LOOP

⬜ Draw a square

Use the "Repeat" block, so you don't need to write "Move forward + Turn right" 4 times. The robot's trail will form a square.

CHALLENGE 3 · CONDITION

🚦 Smart navigation

Learn the idea of "if–else": if there's a wall ahead, turn right; if not, keep moving forward until you reach the finish.

Blocks (click to add)

Move forward _ steps
Turn left
Turn right
Repeat _ times
If wall ahead
Say "Hello"

💡 Tip: the robot faces up by default.
🟢 = start ⭐ = finish ⬛ = wall

Your program

Click a block on the left to start building…

Playground

The run log will appear here…