A lightweight, browser-based tool to convert code snippets into interactive "Parsons Problems" (drag-and-drop code ordering exercises).
- 2D Indentation: Support for horizontal indentation (essential for Python and logic nesting).
- Smart Shuffle: Automatically strips empty lines and randomizes code blocks.
- Persistent State: Uses
LocalStorageto save your progress even if you refresh the page. - Tab Support: The "Create" mode allows you to use the
Tabkey to indent your source code naturally. - Instant Validation: Immediate visual feedback on code order and indentation logic.
- HTML5/JavaScript (Vanilla)
- Tailwind CSS (Styling)
- SortableJS (Drag-and-drop engine)
- Input: Paste a working block of code into the generator. Use spaces or tabs for indentation.
- Generate: Click "Generate Puzzle" to shuffle the lines.
- Solve: Drag blocks from the left bank to the right solution area.
- Indent: Use the arrow buttons on the solution blocks to adjust nesting levels.
- Verify: Click "Check Answer" to see if your logic matches the original source.
This project is open-source and available under the MIT License.