Skip to content
CodeItRaw

Write Python, JavaScript, TypeScript, C++ or SQL; run it, pause it, rewind it. Watch what every line does, step by step, in a live world.

Scroll and the code runs. The lit line is the one running now, the bot is its result, and the strip below is the whole run.

  1. Write

    Read the sensors, decide, steer the bot.

  2. Run

    The code runs once; every line is recorded.

  3. Rewind

    Go back in time to the moment the bug was born.

step 1 / 25
1def solve(bot, radar):
2 while not bot.at_target():
3 if radar.front_blocked():
4 bot.turn_right()
5 else:
6 bot.move()

The commands in this example unlock as you go; the first level has only bot.move().

Every level is also tested on hidden maps. Code tailored to one map gets caught, efficient code gets measured.

166425610244096051015204096 reads at n = 4096 ↑
Binary search ≈ O(log n) Read budget Linear scan

Measured on the reference solution: as n grows 256×, reads go from 3 to 11.

ifelifwhileforrange()O(log n)stackqueueBFSlen()returnbreak