Skip to content

Latest commit

 

History

History
 
 

sokoban

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Sokoban

Editor session

Sokoban is a Japanese puzzle game, designed in 1981. Its title translates to 'warehouse keeper'. The player controls a character who must push every box onto every storage location. The boxes can be pushed, but not pulled; the challenge is to think several steps ahead, and avoid getting stuck in a state from which it is impossible to progress.

Implementation Details

This was the first attempt at moving multiple objects at once. One predicate (move ?ply - player ?from - pos ?to - pos) moves the player, and another predicate (push ?ply - player ?ply-from - pos ?ply-to - pos ?blk - block ?blk-from - pos ?blk-to - pos) allows the player to push a single block.

Todo

  • Animation file needs fixing - box-pushing breaks the Planimation
  • More levels of larger sizes
  • Test suite needs to be made
  • Images need to be made