How to play Sokoban

Click here to play

This is a classic game of logics, invented in 1980 by the japanese Iroyuki Imabayashi. The player takes control of the "Sokoban", a word that means "warehouse keeper" in japanese. Each level is a labyrinth in which there are some boxes and marks on the floor. You have to use the sokoban to push the boxes to the marks. You have to be careful because the Sokoban can only push the boxes, he can't pull them, so if you don't take care, you can leave boxes blocked and therefore it will be impossible to reach the goal.

The controls are: cursor keys to move the sokoban, and backspace to undo movements.

This version of Sokoban has a quite interesting feature: you can move the Sokoban with tht mouse: If you press in any accessible place on the screen, the sokoban will move there. Also, if you press on a box and then on the place where you want to move it, the sokoban will push it to there, if that is possible.

These features are based in an implementation of the A* algorithm for pathfinding (a classical Artificial Intelligence algorithm).

The graphic design is based in a skin developed by Ariel Rodriguez for an windows implementation of sokoban, with some minor adaptations for this version. In this skin, the sokoban and the boxes are spheres. This design is specially appropiate because, being the sprites so simple, it is easy to visualize the game situation.

This applet only works with Java versions 1.2 or higher. Download the latest version of the Java Virtual Machine.

Valid HTML 4.01! (C) 2006 Farid Fleifel - Contact: farid@fleifel.net