Sokoban

Sokoban is a classic puzzle game invented in Japan. Sokoban means warehouse keeper, and the object of the game is to push boxes (or balls) into their correct positions while minimizing the number of moves and pushes.

You may only move up, down, left and right -- no diagonals. You can navigate with the keyboard or the mouse. You can push one ball at a time by moving into it. The goal is to get all the balls onto the "safe spots", which completes the level.

There is no way to pull a ball, so if one gets stuck in a corner, you won't be able to complete the level.

Keyboard Navigation

Keyboard shortcuts:

Key(s)Action
Up, k, numpad-8move north
Down, j, numpad-2move south
Right, l, numpad-6move east
Left, h, numpad-4move west
u, ctrl+zundo last push
rrestart level
qsave and quit

Mouse Navigation

If you click on a location, the guy will run there if there's a open path to that spot.

If you click on a ball next to you, and the ball can be moved in that direction, you will push the ball.

If you hold down the Shift key while clicking on a ball, you will "charge", pushing the ball as far as it can go.

Customizing the Game

The easiest way to use your own artwork is to provide replacements for the 24 image files in the art/ subdirectory, with the exact same names. Your images should all be squares of the same size. The game will auto-detect the image size, and size the window accordingly.

There are thousands of sokoban levels available on the internet, all in the same text-file format. Any files you copy into the levels/ subdirectory will be picked up, as long as you give them sequential numbers: level.91, level.92, ...