bun installbun run generateThis creates:
data/finetuning_dataset.jsonl(900 maps)data/benchmark_maps.json(90 maps)
Takes ~45 seconds to complete.
bun run visualizeOpens an interactive web viewer in your browser.
| Action | Method |
|---|---|
| Next maze | Click "Next" or press → |
| Previous maze | Click "Previous" or press ← |
| Random maze | Click "🎲 Random" |
| Show path | Click "🟢 Show Path" |
| Hide path | Click "🔴 Hide Path" |
| Step through path | Click "⏭️ Step" (when path shown) |
| Filter by algorithm | Use "Algorithm" dropdown |
| Filter by size | Use "Size" dropdown |
- 🟦 Blue P = Player start
- 🟥 Red D = Destination
- ⬛ Dark = Walls
- ⬜ Light = Walkable
- 🟧 Orange = Path (when shown)
- Long winding corridors
- Many dead ends
- Complex paths
- Blocky rooms
- More open areas
- Interconnected chambers
- Natural caves
- Organic shapes
- Large open spaces
# Generate mazes
bun run generate
# View mazes interactively
bun run visualize
# Generate a single maze example
bun run examples/single-maze.ts
# Compare algorithms side-by-side
bun run examples/compare-algorithms.tsUse the visualizer to verify:
- P (start) is blue and on walkable tile
- D (destination) is red and on walkable tile
- Show path connects P to D
- Path doesn't go through walls
- Different algorithms look distinct
- All three sizes (5x5, 10x10, 20x20) work
- Path length matches step count
"Could not load maze data"
→ Run bun run generate first
Visualizer won't open
→ Manually open visualizer.html in any browser
Mazes look wrong → Check the examples to see expected output
- README.md - Full project documentation
- VISUALIZER.md - Detailed visualizer guide
- CLAUDE.md - Implementation details
That's it! You're ready to generate and visualize mazes for LLM training. 🎉