Usage

This is a simple tool to try and solve Sokoban levels. The levels are defined in an ASCII map of the level.

usage: dbox [-i|-v|-p|-P] level-file

Sources and some example level files are available here.

Switches

-i - Produces an interactive result so you can visually see which route to take.

-v - Produces verbose output so you can see how far dbox has searched.

-p - Allows you to interactively play the level after the solution is found.

-P - Allows you to interactively play the level without a solution being searched for.

Input Files

Input files look like the following:

Level 4
 ####
##  #
#@B #
##B ##
## B #
#.B  #
#..X.#
######

The first line has a textual description of the level. The rest of the file is a respresentation of the level where:

@ represents the player's starting position

# represents a wall

. represents the target for a box

B represents a box

X represents a box already on a target square