August 29th, 2024

Sokoban

Sokoban, created in 1981, is a puzzle game where players push boxes to storage locations on a grid. It has various adaptations and is known for its computational complexity.

Read original articleLink Icon
Sokoban

Sokoban is a puzzle video game created by Hiroyuki Imabayashi in 1981, where players push boxes in a warehouse to designated storage locations. The game features a grid layout with walls and boxes, and players can only push boxes into empty squares, not pull them. The objective is to move all boxes to their respective storage spots, requiring careful planning to avoid creating unsolvable scenarios. Initially released in Japan in 1982, Sokoban became popular, selling over 400,000 copies before its U.S. release in 1988. The game has been adapted for various platforms, including home computers, consoles, and mobile devices. Sokoban has also been the subject of scientific research, revealing its computational complexity, as solving its puzzles is NP-hard and PSPACE-complete. Various game variants have emerged, introducing different mechanics, such as multiple pushers or alternative objectives. Notable releases include "Soko-Ban" for IBM PCs and "Sokoban Touch" for mobile devices. The game remains influential in both gaming and computational theory, serving as a testbed for planning techniques and automated solvers.

- Sokoban was created in 1981 and became commercially successful in Japan.

- The game involves pushing boxes to storage locations on a grid, requiring strategic planning.

- It has been adapted for numerous platforms, including mobile and consoles.

- Sokoban puzzles are computationally complex, classified as NP-hard and PSPACE-complete.

- Various game variants have been developed, expanding on the original mechanics.

Link Icon 6 comments
By @RodgerTheGreat - 8 months
One of the most famous indie games riffing on Sokoban and playing with expectations for its gameplay is the delightful Baba Is You.[0]

If you're interested in trying to make your own variations on Sokoban-like games, PuzzleScript[1] is tailor-made for the task, with a fascinating declarative approach to describing game rules.

A Sokoban-like game can also be an excellent way to familiarize yourself with a new game engine or graphics toolkit. My own project, Decker, includes a very short Sokoban to demonstrate how one might make turn-based tile-oriented games.[2]

[0] https://www.hempuli.com/baba/

[1] https://www.puzzlescript.net

[2] http://beyondloom.com/decker/goofs/sokoban.html

By @quibono - 8 months
For the interested, proof that Sokoban is NP-hard.

https://www.archim.org.uk/eureka/archive/Eureka-54.pdf#page=...

By @cbanek - 8 months
Any nethack players here? I love the sokoban levels, probably my favorite little sidequest.
By @arran-nz - 8 months
Hey cool, I'm building a game inspired by Sokoban where you're tasked with destroying evidence and cleaning up any trace of crime - It's called Hazard Pay.

It started as a game jam entry for Ludum Dare, but after the great feedback I decided it was simple enough to go for a full release.

- https//smitner.studio/hazardpay

By @jpl56 - 8 months
I remember playing Sokoban on Mac around 1994. This version had something I never saw since then: when you clicked on a square, your character would move automatically to that square, provided there existed a path. This was VERY convenient and I miss it.
By @krapp - 8 months
Also see this video essay on Thinking Rabbit and Hiroyuki Imabayashi (the author of Sokoban):

https://www.youtube.com/watch?v=DvEfSP-sRXI