3 JavaScript Puzzle Games

Challenge your mind with this collection of JavaScript puzzle games. From classic sliding tiles and Sudoku to logic-based challenges and number games, these interactive examples are great for learning game development or just having fun — all crafted using HTML, CSS, and vanilla JavaScript.

Last updated:

thumbnail: Rotating Puzzle

Rotating Puzzle

A complex puzzle where each image fragment can be flipped or rotated in any direction, challenging the player’s spatial reasoning to reconstruct the original picture.

thumbnail: Sliding Puzzle with GSAP Draggable and Tailwind CSS

Sliding Puzzle with GSAP Draggable and Tailwind CSS

An implementation of a sliding puzzle using GSAP Draggable - featuring a custom snap function for grid alignment and onThrowComplete logic that uses hitTest to determine move validity and trigger the swap animation.