Games

Free mini game

Bug Squash

Every program hides one buggy line. Read the code and squash the bug before time runs out!

Score

0

Bugs

0

Lives

Best

0

Live code monitorWatch the code react
Variable bug
Condition bug
Loop bug
Sequence bug
SET score TO 10 ← should ADD
🐞

Ready to debug?

Read each tiny program, find the one buggy line, and tap it before the timer runs out. Wrong taps cost 3 seconds!

Coding badge missions

0 / 4

Bug Spotter

Squash your first bug

Quick Fixer

Squash a bug in under 5 seconds

Sharp Eyes

5 first-try squashes in a row

Debug Hero

Squash 12 bugs in one run

Badges are saved on this device.

Coding Coach
Level 1 of 4

Variables

Watch what SET does

SET replaces a variable's whole value; CHANGE adds to it. Using SET when you meant CHANGE erases the old value — a classic bug.

SET score TO 10 vs CHANGE score BY 10

Try it: In the next variable bug, check whether the line should remember the old value.

Variables
Conditions
Loops
Sequence
Code Challenge

Variables

1 / 12

Why is SET score TO 10 a bug when collecting coins?

Ready to build your own game?

Use the same input, variables, conditions, and loops with a live coding instructor.

Build games in a free demo class