The classic 4x4 sliding puzzle, implemented in plain HTML, CSS and JS.
- Arrow keys on desktop, swipe gestures on touch devices.
- Score and best-score (persisted in
localStorage). - Smooth CSS transitions on every move.
- New game button, win / lose states.
Open index.html in any modern browser.
- Grid-based game state in a plain JavaScript array.
- Pure-function move logic that's easy to test.
- Touch event handling with a small swipe-direction helper.