🧩 Logic & coding joy
Puzzles, games and small programs that teach sequence, loops, conditions and functions, with the trace shown at every step.
8 missions🧪 8 live
CSE01Robot MazeA delivery robot must reach the flag. Give it commands and watch it follow them one by one.
CSE02Loop CarnivalThe carnival needs a light pattern printed row by row. Nested loops draw it.
CSE03Function FactoryThe factory makes ticket prices. Break the job into small functions that each do one thing.
CSE04Debugging DetectiveThe average-marks program gives the wrong answer. Find and fix the bugs using the failing tests as clues.
CSE05Number Guessing StrategyA secret number between 1 and 100. Write a guesser that always finds it in 7 tries or fewer.
CSE06Tic-Tac-Toe RefereeWrite the referee that decides who has won a tic-tac-toe board, the first step towards a minimax player.
CSE07Board Game SimulatorAn original two-player race game: players move by dice rolls, ladders jump ahead and snakes slide back. Simulate a game.
CSE17Recursion FractalA tree that grows branches from branches. Recursion with a base case draws and counts it.
🗺️ Program flow with a trace
A program takes input, runs its steps one at a time (the trace) and produces output that the tests check.
Drag to turn, scroll to zoom, tap a block to see what it is.
The 2D diagram shows the exact flow, ports and trust boundaries. The 3D scene is a concept view of the same parts; packets travel along the same arrows.
📚 Reference documents
- The Python Tutorial · Python
- Pyodide: Python in the browser · Pyodide
- Introduction to Algorithms (6.006) · MIT OpenCourseWare