Sokoban is a classic puzzle game.

computer science


You must demonstrate your program during class time to be graded. (It is an individual assignment)

Assignment due (Submitting Softcopy to eConestoga):


Section 1

November 3, 2019 (Sunday, 11:59PM)

Section 2

November 3, 2019 (Sunday, 11:59PM)

Section 3

November 3, 2019 (Sunday, 11:59PM)


Demo is due on the first class after due time. Hardcopy must be submitted during demo.


Introduction: Sokoban

  1. Sokoban is a classic puzzle game. This game emulates an imaginary warehouse built with walls where initially there are several boxes are found. On the floor there are some places marked as the storage location (destination) for the boxes. In this game you (player) will play the role of a warehouse manager (Hero) who is responsible to move the boxes to the appropriate storage locations. Once all the boxes are in proper places the game ends.

Rules of the Game:

1.      The game is played on a board of squares/tiles, where initially each square is a floor.

  1. In this game you will have the following types of components that may be placed on a square:
    1. Hero – the character controlled by the user/player ( Warehouse Manager)
    2. Wall
    3. Box
    4. Storage location

3.      Some floor squares contain walls and boxes, and some floor squares are marked as storage locations/destination for the boxes.

4.      The Hero is confined to the board, and may move horizontally or vertically onto empty squares or squares marked as storage locations.

5.      There will be only one Hero.

6.      The Hero may never go through the walls or boxes.

7.      The Hero may push a box, which moves the box to the next square (if empty or a storage location) towards the direction of movement, and moves the Hero to the previous location of the box.

  1. The Hero can push only one box at a time. 

Related Questions in computer science category