Sokoban Replayer

[Update: Oct. 17, 2010] The old skin format is dropped, and the "Common Sokoban Skin Format" is adopted. The "Common Sokoban Skin Format" has very rich features, and is used in several major Sokoban clones, including JSoko, Sokoban YASC, SokoSave Mobile and YSokoban. SokoReplay uses only a subset of the Common Skin Format standards. One advantage of switching to the new format is that we can make use of dozens of skins already available on the web.

[Update: Sep. 14, 2010] Added mouse control. Right click to pause/play. Left click to replay one move in pause mode.

Sokoban Replayer (SokoReplayer) is a Java Applet for showing animation of solutions of Sokoban levels. The applet is configurable. Following are two examples of SokoReplayer. You can specify the level (in one-line normalized xsb format with rows separated by '|'), solution (in LURD format), skin and animation speed for the applet. SokoReplayer also supports the RLE levels and RLE solutions generated by YSokoban.

Also, the applet is controllable. By default, the SokoReplayer applet replays the solution over and over. But you can also use keyboard/mouse to control its behavior:
SPACE/PAUSE(right click): Pause/Play
ESC/HOME: Restart
END: Go to the end of the solution
LEFT: undo one move
RIGHT(left click): redo one move
PAGE UP: increase the replaying speed
PAGE DOWN: decrease the replaying speed

To use the SokoReplayer Applet in your webpage, download the applet SokoReplayer.class and either/both of the skin images skin.png and sokobox.gif. You can also make your own skin file. See the source file of this web page to find out the detailed usage of this applet.


If your browser supported java you would see another applet here


If your browser supported java you would see another applet here


July 18, 2010
Free Web Hosting