Reverse engineering / A light-routing puzzle

Can you copy a program
without seeing its code?

Imagine rebuilding a game whose source code is missing. You can still play the original. Can you work out its rules by watching what goes in and what comes out?

Try it here: send the same light beam through two machines. Change your copy’s rule until both send the light to the same exit. Then use that rule to build a light maze you can download.

Try the first comparison

Why this matters when you use AI

AI can help you rebuild a program from examples. But matching a few examples is not enough. Try an input that could reveal a wrong rule. Then change the rule and test again.

Here, you choose from three possible rules to practice that job. This is a simulation built with AI assistance, not an AI generating a program as you play.

Where AI fits in reverse engineering

An AI coding assistant can propose a program from examples and revise it after a failing check. The useful loop is observe → propose → compare → revise. A convincing explanation is still a guess until its behavior is checked.

This arcade was built with AI assistance under Jonathan Simone's direction. Its reference and candidate rules are authored teaching examples. Comparisons and beam paths really run in your browser; there is no live model or recorded AI reconstruction here.

Explore the idea and its limits

Different programs can match the same examples. A counterexample is an input where a candidate and reference disagree. Exhaustive checking here covers a tiny declared domain and one output, the outgoing direction. It is not a claim about arbitrary inputs, commercial games or general AI reliability. Client source is inspectable; the reveal is a teaching device.

Interaction inspiration: Bret Victor's Ladder of Abstraction and Nicky Case's Evolution of Trust. Arcade artwork and rules are original. No assets or code from those works are reused.