Study and Productivity

Teaching Kids to Code With Blocks: Five Projects to Start With

Five beginner block-coding projects, from drawing shapes to an arrow-key game, and the ideas each teaches: sequence, loops, events, conditions.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
Teaching Kids to Code With Blocks: Five Projects to Start With

Teaching Kids to Code With Blocks: Five Projects to Start With

Block coding lets children think like programmers without typing syntax. The Block Coding Playground uses Scratch-style blocks in the browser with no account. These projects build the core ideas one at a time.

1. Draw a square (sequence and loops)

Pen down, then move 100 steps and turn 90 degrees, four times. Then replace the four copies with one repeat 4 block. That is the idea of a loop: do the same thing several times without writing it again.

2. Draw a triangle (angles)

Change repeat to 3. What angle makes the shape close? The turns must add up to 360 degrees, so each is 120. Ask children to predict before running.

3. Draw a circle

Thirty-six steps of 10 degrees also make 360. Small steps with small turns look like a curve.

4. Bouncing ball (forever and conditions)

Point in direction 45, then forever: move 6 steps and if on edge, bounce. The forever loop and the edge check show how programs react to what happens.

5. Arrow-key game (events and variables)

Add scripts that start "when key pressed" for each arrow, moving the sprite and changing the score by 1. Events let the program respond to the player, and the score is a variable that remembers a number.

The ideas behind them

IdeaWhere it appears
SequenceBlocks run top to bottom
LoopRepeat, forever
EventWhen flag clicked, key pressed
ConditionIf on edge, if key pressed
VariableScore
Coordinatesx from −240 to 240, y from −180 to 180

Tips for adults

Let children break things and fix them. Ask "what do you think will happen?" before pressing Go, and "why?" afterwards. Save projects with the export button so good work is never lost.

Work in small, saved steps

Every tool in this series keeps your work as a project in your own browser. Make a change, check the preview, and use undo (Ctrl+Z) or redo (Ctrl+Y) freely; nothing is lost while you experiment. Before a big change, save a named copy from the Projects menu, so you can return to it later or compare two versions side by side. Export the project file when you want to move it to another computer or keep a backup, and import it again whenever you need it.

Next steps

When these feel easy, combine them: a bouncing ball that plays a note at every bounce, or a game where clicking a sprite adds to the score. Add a second sprite with its own scripts and see how both run at the same time.

Privacy by design

The processing happens in the page itself. Files you open are read by code running on your device, results are calculated locally, and nothing is sent to a server or stored in a cloud account. That makes the tool suitable for customer lists, financial data and other material you would not upload to an unknown website. If a component such as a file reader or a map outline is downloaded from a public CDN, only that open-source code or public data is fetched, never your own content.

Share the result clearly

When you pass the output to colleagues, say where the data came from, when it was exported, and which settings you used, so that someone else can repeat the work and get the same answer. Keep the original file unchanged and store the cleaned or calculated version separately. A short note with the assumptions, filters and date saves a lot of questions later and makes the result easier to trust.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages