Sokoban
Play the classic Sokoban warehouse puzzle in your browser, pushing crates onto target tiles across multiple difficulty levels with keyboard and touch controls.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Classic Sokoban Box-Pushing Puzzle
Push all crates onto the storage target dots. Use Arrow keys, WASD, or on-screen buttons.
Legend
🧑 Keeper | 📦 Crate | 🎯 Target Dot | 🧱 Solid Wall
Golden Rule
Crates can only be pushed, never pulled. Avoid pushing crates into dead-end corners!
Controls
Keyboard Arrow Keys or W / A / S / D. On mobile, use the on-screen buttons.
How it works
- Select a puzzle difficulty level (Level 1 Easy Intro, Level 2 Warehouse Squeeze, or Level 3 Four Corners).
- Control the warehouse keeper using Arrow keys, WASD, or the mobile on-screen directional pad.
- Push crates (📦) strategically across floor tiles onto matching target storage dots (🎯).
- Plan your path carefully to avoid pushing boxes into unmovable corner deadlocks.
FAQ
What is Sokoban?
Sokoban (Japanese for "warehouse keeper") is a classic transport puzzle video game invented by Hiroyuki Imabayashi in 1981 where the player pushes crates around a warehouse labyrinth onto designated target storage locations.
Why is Sokoban famous in computer science and AI?
Sokoban is computationally PSPACE-complete. Because boxes can only be pushed and never pulled, a single wrong move can permanently lock the board into an unwinnable deadlock state, making it a classic benchmark for AI search and heuristic planning algorithms.
What are the main causes of deadlocks in Sokoban?
A corner deadlock occurs when a box is pushed into an interior non-target corner formed by two adjacent walls. Line deadlocks occur when two adjacent boxes are stuck along a continuous wall without targets.
How do you control the keeper in this browser version?
Use the standard keyboard Arrow keys, WASD keys, or the on-screen directional touch pad on mobile devices.
How we compare
| Feature | Online Tool Store | Retro game emulators | Flash game archives |
|---|---|---|---|
| Pure lightweight zero-dependency web canvas | ✓ | ✗ (Heavy ROM loading) | ✗ (Deprecated plugins) |
| Keyboard (WASD/Arrows) & Mobile Touch D-Pad | ✓ | Partial | ✗ |
| Move and Push counter analytics | ✓ | ✓ | Partial |