Programs
Sokoban Source Code
 previous   up   next 

Sokoban is a game that is played on a board of squares. There are floor and wall squares. Some floor squares contain boxes, and some floor squares are marked as storage locations. The player can push a box horizontally or vertically to an adjacent empty square. Boxes cannot be pulled, and they cannot be pushed to squares with walls or other boxes. The number of boxes equals the number of storage locations. The puzzle is solved when all boxes are placed at storage locations.

This programs uses the 50 original levels from Sokoban plus 40 levels from Extra.

The following commands are accepted:

  • cursor keys to move
  • u to undo a move
  • r to redo a move which was undone
  • q to quit the game
  • n for next level
  • p for previous level
  • s to restart current level
  • l to select other level

Sokoban level 1

 previous   up   next