Code Eclipse
Code Eclipse · Music coding session

Binary Beats

The eclipse stole our song! All that was left was a code of 0s and 1s. Agents cracked it, brought the music back, and built drum machines and help bots. Pick your rank to start your mission.

Using a starter pen? You can change anything and the original stays safe, but don't refresh or close the tab: your changes aren't saved unless you have a free CodePen account.

Choose your rank

Every agent can earn all 4 badges: Code Cracker, Song Saver, Bug Squasher and Beat Legend.

New recruits

Code Cadet

Write music in binary on paper, bring the song back in the Scratch game, then code your own beat maker.

Download the Scratch game Mission file (PDF)

Open it in Scratch with File → Load from your computer.

Done some coding

Code Breaker

Crack the secret numbers, hack a real JavaScript drum machine, then teach it a snare drum.

Open the drum machine Mission file (PDF)

Opens in CodePen. No account needed.

Last time too easy?

Code Captain

Teach the Binary HQ Help Bot your own rules, then upgrade it into a mini AI-style agent with tools and a memory.

Open Binary HQ Mission file (PDF)

Opens in CodePen. No account needed.

Keep coding at home

Everything from the session, free to use.

🎵 Scratch projects

  1. Go to scratch.mit.edu and click Create.
  2. Choose File → Load from your computer.
  3. Pick the file you downloaded and press the green flag.
Binary Beats game (.sb3) Finished beat maker (.sb3)

💻 Keep your CodePen work

Pens only save with an account. With a grown-up, make a free account at codepen.io, open your starter pen, and choose Fork to keep your own copy.

Know Python? Try rebuilding the Help Bot at trinket.io with input(), if/elif and int(t, 2).

🔢 Try this

What is 1011 in binary? What about 1111 1111? Ask your agent: they know!

👪 For parents and carers

Why learn to code when there's AI? What did your child do today? It's all in our one-page handout.

Parents' handout (PDF)