parent nodes: GamePlay | hotkeys | OptionsDialog | YSokoban

Game Play

To play the game one has to move person (man) on screen. Man can either go from one cell to the other if there is nothing on second cell or can push a box if the cell on which man wants to go is occupied by box and there is empty cell behind the box.

Playing with keyboard

All this man movements could be done using keyboard or mouse. When moving man with keyboard one shall use arrow keys (left, right, up, down) to move man.

Undo/Redo

YSokoban supports undo/redo actions. With keyboard undo is done with backspace. For redo use space.

Playing with mouse

Usually when player has finished 2 or 3 of his first levels ever he realizes that how to push some box from one cell to the other is not an interesting task. Important thing (which one has to be concentrated on) is in which order boxes has to be pushed and to which cells.
So here come the mouse usage. There are different possible usage of mouse: click on man and click on the cell where you want to move the man or even simply click on some cell and man will go there (if possible without pushing boxes). The other possibility (much often used) is to click on some box and then click on cell where it shall be pushed (or drag and drop box there). If there is push path, then man will push box there. To be able to find how to push the box YSokoban has a push path finding capabilities (like most of the modern Sokoban implementations).

With mouse undo/redo is assigned to mouse wheel (by default). But you can configure it.

Push Path finding

YSokoban has a path finder to help player with tedious and non productive part of the game: See example for path finding and instant move below.

Instant move

YSokoban supports not showing the intermediate moves/pushes during play or replay. In other words, all of the intermediate animations will not be shown when this feature is enabled. For example, if you click on a box and then click on the destination, you will see the box moved to the destination instantly. Click on the "IM" button to enable this feature.
During IM, there's an option to show direction change. To enable this, select "Show dir change during IM" in the options panel.

Example for path-finding and instant move:


Go-Through boxes

In some special cases restriction "not to touch other boxes" during path finding is too strong. There are many cases where to go from one part of the level to the other part one needs to push some box and then return it back where it was. This is called Go-Thrugh Box.
So it will be nice to have this automatically done.
Go-Through feature will show places where the player can reach after pushing a box and pushing it back in the same place.
To activate it, in the options panel, check the box "Go through boxes (if possible)".
To use it: click on the Player: if go-thru is possible

Examples:

Moving the player with go-thru:


Moving a box with go-thru:

Save/Load during play

One can save and load current position at any time. You have to specify filename to save/load level and solutions.

Copy/Paste

YSokoban support clipboard usage. One can copy/paste solution or level from/to clipboard.
Importing (pasting) solution shall use LURD format. When importing into YSokoban, the LURD formatted solution can be in lower or upper cases. When exporting from YSokoban, the LURD formatted solution will always be in the proper cases.

Copy current level and solution to clipboard

Paste level/solution

When pasting from clipboard YSokoban analyzes contents and in case it is level (or collection) will use it. If it is solution it will try to play this solution as a solution for the current level.

Changing level orientation

You can play any level in any of the 8 possible orientations (rotate/mirror) at any give time. You can also "lock-in" the orientation for all levels. You can select an orientation from the "Select transformation" panel, or you can use the following hotkeys:
Created with wikidPad