06:54
2026-06-20
dev.to
developer-tools
I Built Pac-Man in ~150 Lines of Vanilla JavaScript
A developer built a fully playable Pac-Man clone in about 150 lines of vanilla JavaScript, using a text-based maze, grid movement, and simple greedy ghost AI. The entire game logic relies on array looβ¦