XSOK(6x)
π NAME π
okay so bestie, meet xsok β a generic Sokoban game for X11, and we're talking Version 1.02, no cap. π
β¨ SYNOPSIS β¨
xsok [ options ]
π¦ DESCRIPTION π¦
So xsok is a single player strategic game, and it's literally a superset of the well known Sokoban game. Iconic behavior.
Real talk though: this manpage only describes the user interface of xsok. If you wanna create your own levels, you should go consult the xsok manual for more info, okay? That's a whole other vibe. π
The target of Sokoban is to push all the objects into the score area of each level using the mouse or the arrow keys. For the other level subsets, there are different kinds of objects, and special effect squares. So many lil surprises. π
xsok can be played using only the mouse, or only the keyboard β pick your fighter. Keyboard and mouse bindings are defined through a textfile. This manual page describes the default bindings. π
π OPTIONS π
All standard X toolkit parameters may be given, such as -display display etc. etc. Additional options are:
-ruleslevel subset β this option specifies the initial level subset forxsok. Valid built-in rule names areSokoban,Cyberbox, andXsok, but you may implement new level subsets without recompiling the game. Level subsets share common characteristics of the board. InSokoban, for example, all boxes have the same weight. InXsok, the first level is a demo level, where you can experiment with the new objects. π-levelstartlevel β set the starting level. simple as that.-usernameusername β in a save-game file, your name, as found in the/etc/passwdfile, and the hostname of your computer, will be stored in the file. The default format isrealname (username@hostname.domain), for exampleMichael Bischoff (mbi@flawless.ts.rz.tu-bs.de). You can override this default string with the argument to theusernameoption and provide a different e-mail address, for examplexsok -username "Michael Bischoff (m.bischoff@tu-bs.de)".
If you break the scores for one level, your solution will be saved automatically. π
-xsokdirxsokdir β this option sets the root of the xsok data file tree. The default is/usr/share/games/xsok.-xpmdirxpmdir β this gives the directory from where to load the graphic data. π¨-savedirsavedir β this option sets the directory for save game files and the xsok highscore files. The default is/var/games/xsok.-messageFilemessagefile β this option sets the name of an alternative message file forxsok. The pathname is relative to xsokdir. The default ismessages, and does not exist, which means to use the internal messages. π¬-keyboardFilekeyboardfile β this option sets the name of the file defining the keyboard bindings. The pathname is relative to xsokdir. The default iskeys. The bindings in the default file are described below. β¨οΈ
All command line options may be abbreviated, or set by the X11 resource manager. The resource name for option -xyz is Tableau.xyz and its class name is Tableau.Xyz. iykyk. β¨
πΈ KEYBOARD BINDINGS πΈ
The arrow keys will move the man. πΆ The default binding is similar to the binding in xsokoban. Some commands accept a numerical prefix (i.e. typing some digits before the command key), which usually is used as an operation count. so like, type a number first and it counts for you, slay.
aβ Display the author of a level (if known).bβ Drops the bookmark. πgβ Goto bookmark.iβ Displays the level comment (if any).sβ Saves the current position. πΎLβ Reloads a saved game.Rβ Restart this level. With numerical prefix n, jumps to move number n.Nβ Proceed to the next level. With numerical prefix n, jumps to level n.Hβ Reread the highscore table.Pβ Return to the previous level.Uβ Proceeds to the next unsolved level. π§©qβ Quits the game.vβ Shows the version ofxsok.?β Shows the current score.bβ Shows the best score for this level.cβ Drops the bookmark at the current position.uβ Undoes the last elementary move. Accepts numerical prefix.rβ Redoes last move (undoes an undo). Accepts numerical prefix. π(β Starts recording a macro (sequence of moves))β End a macro.<ENTER>β Replays a macro.
ngl bestie, yes, b shows up twice in the default file with two whole different jobs. that's just how it is. π
π«Ά KEYBOARD BINDINGS π«Ά
(yes it says keyboard again β the mouse stuff lives here, the original page just vibes like that, I don't make the rules π)
With the default button assignment, button 1 is bound to the function MouseMove. If pressed on a clear square, the man will move to that location via the optimal path if such a path exists. If pressed on an object that is adjacent to the player, the object will be pushed. π§
Button 2 is bound to MouseDrag. This command requires that you press the mouse button on a location where a box resides, drag the mouse, and release the button on an empty square. The man will then move the box from the first square onto the second with the minimal number of pushes, if it is possible at all. Please note that the man will not move any other object and will only use squares without effects. β οΈ
Button 3 is bound to MouseUndo. This function undoes one of the previous commands, which would possibly require a lot of calls to the atomic undo function. π
π NATIONAL LANGUAGE SUPPORT π
xsok has simple support for different languages. All messages which appear in the X11 window may be overloaded by files, as well as the key bindings. The typical support consists of an application-defaults file, a message file, and a keyboard file. Possibly translated online-help files are also there. π
To select a different language, call xsok after setting the environment variable LANG to the desired value.
Currently, no translated version is available. π
π FILES π
(Directories may differ on your system.)
/usr/games/xsok
/var/games/xsok/type.score
/var/games/xsok/type.nn.{sv,bs,mp,mm}
/usr/share/doc/xsok/copyright
/usr/share/doc/xsok/xsok.tex.gz
/usr/share/doc/xsok/cyberbox.doc
/usr/share/games/xsok/floor.xpm.gz
/usr/share/games/xsok/objects.xpm.gz
/usr/share/games/xsok/keys
/usr/share/games/xsok/keys.help
/usr/share/games/xsok/type.def.gz
/usr/share/games/xsok/type.help
Where type is one of Sokoban, Xsok, Cyberbox, and possibly others. β¨
β CREDITS β
Inspiration for xsok came from xsokoban, a previous implementation of the Sokoban game by Joseph L. Traub. From this game, the wall graphics were taken, and the mouse button assignment. xsokoban's level files can be used without change, but by default, all level files of a level subset are combined into a single file. Of course, credits also go to the unknown author of the curses based game. π«‘
The Cyberbox levels (and a MSDOS game of the same name) are written by Doug Beeferman.
π BUGS π
- The undo function is too slow. π
- Highscore file handling uses no file locking.
- Cyberbox zappers are implemented as one-way passages, which causes worse scores and easier levels.
Please mail bug reports to mbi@mo.math.nat.tu-bs.de. Fixes are especially welcome. π
π§ SEE ALSO π§
xsokoban(6x), sokoban(6)
π AUTHOR π
Michael Bischoff
π COPYRIGHT π
Copyright (c) 1994 by Michael Bischoff (mbi@mo.math.nat.tu-bs.de)
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
xsok was developed under Linux, the free UNIX for the IBM-PC and compatibles. xsok is distributed by terms of the GNU General public license (GNU Copyleft).
okay that's the whole page bestie, and the lil sign-off at the bottom says this beauty was Handmade back in May 1996, filed under XSOK(6x). historic. iconic. periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: xsok 1.02-19
- debian trixie: xsok 1.02-23 Β· GPL-2.0-or-later
- ubuntu jammy: xsok 1.02-19
- ubuntu noble: xsok 1.02-19build2
- ubuntu questing: xsok 1.02-23
- ubuntu resolute: xsok 1.02-23build1 Β· GPL-2.0-or-later
- ubuntu stonking: xsok 1.02-26 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms