World Library  
Flag as Inappropriate
Email this Article


A Sokoban puzzle being solved.

Sokoban (倉庫番 sōkoban, warehouse keeper) is a type of transport puzzle, in which the player pushes boxes or crates around in a warehouse, trying to get them to storage locations. The puzzle is usually implemented as a video game.

Sokoban was created in 1981 by Hiroyuki Imabayashi, and published in 1982 by Thinking Rabbit, a software house based in Takarazuka, Japan.


  • Rules 1
  • Selected official Sokoban releases 2
    • Sokoban published by Thinking Rabbit 2.1
    • Sokoban published by Spectrum Holobyte 2.2
  • Implementations of Sokoban 3
  • Scientific research on Sokoban 4
  • Sokoban variants 5
  • See also 6
  • References 7
  • External links 8


The game is played on a board of squares, where each square is a floor or a wall. Some floor squares contain boxes, and some floor squares are marked as storage locations.

The player is confined to the board, and may move horizontally or vertically onto empty squares (never through walls or boxes). The player can also move into a box, which pushes it into the square beyond. Boxes may not be pushed into other boxes or walls, and they cannot be pulled. The puzzle is solved when all boxes are at storage locations.

Selected official Sokoban releases

Sokoban published by Thinking Rabbit

Sokoban published by Spectrum Holobyte

  • Soko-Ban (1988) (DOS) with 50 levels.

In 1988 Sokoban was published in US by Spectrum HoloByte for the Commodore 64, IBM-PC and Apple II series as Soko-Ban. A 1988 review in Computer Gaming World praised the game for being "pure and simple, very playable and mentally challenging", citing its addictive qualities.[1] It was also reviewed in 1988 in Dragon #132 by Hartley, Patricia, and Kirk Lesser in "The Role of Computers" column. The reviewers gave the game 412 out of 5 stars.[2]

Implementations of Sokoban

Implementations of Sokoban have been written for numerous computer platforms, including almost all home computer and personal computer systems. Versions also exist for several hand held and video game consoles, mobile phones, graphic calculators, and digital cameras.

Scientific research on Sokoban

Sokoban can be studied using the theory of computational complexity. The problem of solving Sokoban puzzles was proven to be NP-hard.[3] Further work showed that it was significantly more difficult than NP problems; it is PSPACE-complete.[4] This is also interesting for artificial intelligence researchers, because solving Sokoban can be compared to the automated planning that needs to be done by a robot that moves boxes in a warehouse.

Sokoban is difficult not only due to its branching factor (which is comparable to chess), but also its enormous search tree depth; some levels can be extended indefinitely, with each iteration requiring an exponentially growing number of moves and pushes.[5] Skilled human players rely mostly on heuristics; they are usually able to quickly discard futile or redundant lines of play, and recognize patterns and subgoals, drastically cutting down on the amount of search.

Some Sokoban puzzles can be solved automatically by using a single-agent search algorithm, such as IDA*, enhanced by several techniques which make use of domain-specific knowledge.[6] This is the method used by Rolling Stone, [7] a Sokoban solver developed by the University of Alberta GAMES Group. The more complex Sokoban levels are, however, out of reach even for the best automated solvers.[8]

Sokoban variants

Several puzzles can be considered variants of the original Sokoban game, in the sense that they all make use of a controllable character who pushes boxes around a maze.

Alternative tilings: In the standard game, the mazes are laid out on a square grid. Several variants apply the rules of Sokoban to mazes laid out on other tilings. Hexoban uses regular hexagons and Trioban uses equilateral triangles.

Alternative pushers: In the variants Multiban and Interlock the player can control multiple characters.

Alternative goals: Several variants adjust the requirements for completing a level. For example, in Block-o-Mania the boxes have different colours, and the goal is to push them onto squares with matching colours. Sokomind Plus implements a similar idea, with boxes and target squares uniquely numbered. In Interlock and Sokolor, the boxes also have different colours, but the goal is to move them so that similarly coloured boxes are adjacent. In CyberBox, each level has a designated exit square, and the goal is to reach that exit. In a variant called Beanstalk, the elements of the level must be pushed onto the goal in a fixed sequence.

Additional game elements: Sokonex, Xsok, Cyberbox and Block-o-Mania all add new elements to the basic puzzle. Examples include holes, teleports, moving blocks and one-way passages.

Character actions: In Pukoban, the character can pull boxes in addition to pushing them.

Reverse mode: The player solves the puzzle backwards, from the end to the initial position by pulling instead of pushing boxes. Standard Sokoban puzzles can be played in reverse mode, and the reverse-mode solutions can be converted to solutions for the standard-mode puzzle. Therefore, reverse mode can also be considered a tool for solving standard Sokoban puzzles. Reverse mode is available in Sokoban YASC and Sokofan.

See also


  1. ^ Wagner, Roy (May 1988). "Puzzling Encounters".  
  2. ^ Lesser, Hartley; Lesser, Patricia; Lesser, Kirk (April 1988). "The Role of Computers". Dragon (132): 80–85. 
  3. ^ M. Fryers and M.T. Greene (1995). "Sokoban". Eureka (54). 
  4. ^ Joseph C. Culberson, Sokoban is PSPACE-complete. Technical Report TR 97-02, Dept. of Computing Science, University of Alberta, 1997. Also:
  5. ^ David Holland and Yaron Shoham, "Theoretical analysis on Picokosmos 17".
  6. ^ Andreas Junghanns, Jonathan Schaeffer (2001) Sokoban: Enhancing general single-agent search methods using domain knowledge, Artificial Intelligence 129(1-2):219-251 (Special issue on heuristic search in artificial intelligence)
  7. ^ Junghanns, Andreas; Schaeffer, Jonathan (1997). "In IJCAI Workshop on Using Games as an Experimental Testbed for AI Research".  
  8. ^ "Solver Statistics - Sokoban Wiki". Retrieved 8 February 2013. 

External links

  • Official Sokoban site (in Japanese)
  • The University of Alberta Sokoban page
  • Erim Sever Sokoban pages
  • Sokoban Wiki, dedicated to this game
  • Virkkala, Timo (2011). Solving Sokoban (Master's Thesis).  
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.