The code is buggy — some tokens are in the wrong place. Swap them to fix it!
🐛
Read the goal to understand what the code should do.
☛
Tap a bright token to select it, then tap another to swap.
🔒
Dim tokens are locked in place — only bright tokens can move.
💻
The console shows syntax errors in real-time. Fix them all until it says Ready.
▶
When ready, tap Run to execute your code. Watch it step through, then see if the output is correct.
⭐
Fewer swaps = better score. Beat par for bragging rights.
⚙
Want hints? Toggle Auto in the console to see output after every swap.
Code keywords (tap to expand)
let x = 5Create a variable named x and set it to 5.
return xThe final answer is the value of x.
while ... { }Repeat the code in braces while the condition is true.
for i = 1 to N { }Count i from 1 to N, run the body each time.
if ... { } else { }Choose one branch based on the condition.