/sokoban

My version of the classic 1981 Sokoban game

Primary LanguagePython

sokoban

This is my version of the Sokoban game, a game that was originally created in 1981 by Hiroyuki Imabayashi. In this game, you need to push the boxes around in a warehouse, trying to get them to their storage locations, marked with X's in my version. The player is confined to the board and may move horizontally or vertically onto empty squares. The player can move a box by sitting next to it and pushing it towards the square beyond, but cannot move boxes by pulling them. The number of boxes equals the number of storage locations and the puzzle is solved when all boxes are placed at storage locations.

Getting started:

  1. You will need Python3 and pygame. You can install Python here. Similarly, you can follow this guide. In order to get pygame, follow the directions on this page.

  2. Clone my repository using the command:

    git clone https://github.com/etuta/sokoban.git

  3. To start the game, inside the sokoban directory, run the command:

    python3 startme.py