Dan Cross 3abbecbffb Remove blank lines at end of file. преди 7 години
..
README f886e82aa3 Plan 9 from Bell Labs 2005-09-06 преди 18 години
animation.c 25de748849 GNU General Public License преди 9 години
graphics.c 817997447b Remove trailing whitespace from source files. преди 6 години
level.c 817997447b Remove trailing whitespace from source files. преди 6 години
mkfile f886e82aa3 Plan 9 from Bell Labs 2005-09-06 преди 18 години
move.c 3abbecbffb Remove blank lines at end of file. преди 6 години
route.c 817997447b Remove trailing whitespace from source files. преди 6 години
sokoban.c 817997447b Remove trailing whitespace from source files. преди 6 години
sokoban.h 817997447b Remove trailing whitespace from source files. преди 6 години
sokoban.json 0ad5b8e45a Reinstate (some) of the plan9 games преди 6 години

README

If you click with mouse button 1
on a (destination) square then the following may happen.

If
- the destination square is on the same row or column as glenda, and
- there is a ball next to glenda
(in the direction of the destination square), and
- all squares between the ball and the destination square
(where glenda will move) are empty, and
- the square next to the destination square where glenda will
push the ball is empty too,
then glenda will move to the destination square, pushing the
ball while moving.

Otherwise, if glenda can go to the destination square
without touching anything, it will do so.

Otherwise, nothing will happen.

The breadth-first search algorithm should find a fast route.
it can be seen in action by toggling the 'animate'
entry in the button 3 menu.