XMAHJONGG(6)

πŸ“¦
version 3.7 Β· 2 versions
  • 3.7 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.7 Β· opensuse-leap 16.0
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ xmahjongg ✨ (that's the Games Manual page, bestie) πŸ€„πŸ’–

okay so like. this is the man page for xmahjongg, a colorful solitaire Mah Jongg game. it lives in section 6 of the Games Manual and it is genuinely iconic. sit down, grab a snack πŸ“, we're doing this.


🌸 SYNOPSIS 🌸

xmahjongg [--display display] [options]

that's it. that's the whole vibe. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so real Mah Jongg? it's a social game that originated in China thousands of years ago. four players, named after the four winds, take tiles from a wall in turn. the best tiles are made of ivory and wood, and they click pleasantly when you knock them together. absolutely unmatched sensory experience, no cap. πŸŽ€

computer Solitaire Mah Jongg (and xmahjongg is, respectfully, one of the sillier examples) is nothing like that β€” but it's fun, or it must be, because there are like 300 shareware versions available for Windows. 😭 anyway this one is for X11 and it's free. periodt.


πŸŽ€ HOW TO PLAY πŸŽ€

the object of the game is to remove all Mah Jongg tiles from the playing field by taking one matching pair at a time. generally, two tiles match if they have identical pictures on top. but there are some exceptions, and they're giving ✨ loophole ✨:

  • any season tile (spring, summer, autumn, or winter) matches any other season
  • any flower tile (bamboo, orchid, plum, or chrysathemum) matches any other flower

there are 144 tiles in all β€” one of each season and flower, and four copies of each of the following:

  • 1 to 9 dots
  • 1 to 9 bamboo sticks
  • characters for 1 to 9
  • the four winds (north, south, east, and west)
  • three dragons (red, green, and white)

only free tiles can be removed. a tile is free if its entire top face is unobstructed and either its left or its right edge is open. (when looking at the left and right edges, only tiles on the same level count. iykyk.)

the rules are simple, but winning, it turns out, can be pretty hard. πŸ’€ it's easy to make a move that causes a stalemate thirty or more moves later. what's worse β€” and this is the part where you gasp β€” the --any-boards option lets xmahjongg create boards that cannot be solved at all!

not me giving you a board that's literally impossible. bestie i'm so sorry. 😭

πŸ’… CONTROLS AND APPEARANCE πŸ’…

to select a free tile, simply click it with the left mouse button and it will light up. click it again to deselect it. if you try to select a non-free tile, xmahjongg will beep at you. (rude of it, honestly.) to remove a matched pair, just select one of the pair and click on the other one. the number in the upper left corner tells you how many tiles you have left. this is all you really need to know to play the game. 🫢

xmahjongg comes with several features that may dismay purists, but make the game more pleasant to play. first is the match count, an array of small gold coins in the upper middle. each coin represents one potential match on the board. (if three mutually matching tiles are free, it counts as three matches, and if four are free, that's six matches.) this will let you know when the game is over (no gold coins means no matches β€” a dead end) and when you're getting close. πŸ‘‘

the five buttons along the top right have the following functions:

  • New (keystroke: n) β€” start a new game.
  • Quit (keystroke: q) β€” quit xmahjongg.
  • Undo (keystroke: u) β€” undoes your last move. you can undo multiple moves by clicking multiple times. if you change your mind about undoing a move, hold down Shift while you click the Undo button (or press r) to redo it.
  • Hint (keystroke: h) β€” gives you a hint by flashing a set of free matching tiles. you can cycle through all existing matches by clicking multiple times. if you select a tile and then click Hint, xmahjongg will flash any free tiles that match that tile, or beep if there aren't any.
  • Clean (keystroke: c) β€” cleans the board by automatically removing obvious matches. a match is obvious if it involves all the remaining tiles of a given type. (for example, if there are 2 green dragons left and they are both free, they form an obvious match; but if there are 4 left and only 3 are free, they don't.) cleaning the board is guaranteed not to cause a stalemate later. slay.
  • Solve (no button; keystroke: s) β€” if you get stuck, press the s key. after the board is restored to its original state, xmahjongg will show you one way to solve it by removing tiles two at a time. press s again to speed up the solution, or press Esc to stop. this won't work if you gave the --any-boards option (see below).

additionally, the Escape key deselects any selected tile.


🌈 KEYBOARD TRAVERSAL 🌈

you can use the arrow keys and the spacebar to play xmahjongg without using the mouse. these keys control the cursor, which is shown as a flashing tile. the arrow keys move the cursor around on the board in the obvious directions. the spacebar is like clicking the mouse button on the cursor tile: it either selects the tile or removes a matching pair.

the hint key, h, is also useful for playing without the mouse. experiment with h, the spacebar, and the Return key to see how this works. when a hint is active, the spacebar is like clicking on one of the flashing hint tiles, while the Return key is like clicking on two of them (so it removes the tiles in one stroke). this method gives the fastest playing speed. πŸ”₯


✨ OPTIONS ✨

if you get bored with xmahjongg's original layout and appearance, never fear: it comes with several tilesets (tile images) and layouts (tile arrangements). in addition to these, xmahjongg can read layout files from the original xmahjongg, KDE Mahjongg, and Kyodai Mahjongg, and tilesets in KDE Mahjongg, Gnome Mahjongg, and Kyodai Mahjongg format. (however, tilesets must be converted to GIF format before xmahjongg can read them.) see the [-l] and [-t] options.

long option names can be abbreviated to their unique prefixes. 🫢

  • --number N, -n N β€” start with board number N.
  • -l layout, --layout layout β€” use the specified game layout. xmahjongg comes with several layouts. the normal layout is called default; to see the other ones' names, run xmahjongg --list. you can also use an arbitrary layout by giving its filename. xmahjongg can read layouts in its own simple format, in KDE kmahjongg format, or in Kyodai Mahjongg format. (Kyodai Mahjongg is one of the more popular Windows Mah Jongg solitaire games. it's got 3D tiles and all sorts of stuff. see http://www.kyodai.com for more information. you can download a zip archive with more than 100 different layouts, mostly usable with xmahjongg, from http://www.kyodai.com/.)
  • --tileset tileset β€” use the specified tileset to draw the Mah Jongg tiles. xmahjongg comes with several extra tilesets, particularly small (perfect for smaller screens). there are others too; run xmahjongg --list for a complete listing.
  • --background image, --bg image β€” the background image is set to image. run xmahjongg --list to see the backgrounds that come with xmahjongg, or use an arbitrary GIF as a background image by giving its filename.
  • [--list] β€” lists all the layouts, tilesets, and backgrounds that came with xmahjongg, then exits.
  • --solvable-boards β€” always create solvable boards. this is the default.
  • --any-boards β€” allow any legal board, some of which will be solvable and some of which won't. 😭 (yes this is the chaos option.)
  • --display display β€” sets the X display to display.
  • --name name β€” specifies the application name under which resources are found, rather than the default ``xmahjongg''. since xmahjongg itself does not use the resource database, this is mostly useful for communication with your window manager.
  • --geometry geometry β€” this standard X option specifies the preferred size and position for the xmahjongg window.
  • [--help] β€” prints usage information and exits.
  • [--version] β€” prints the version number and some quickie warranty information and exits.

πŸ’€ BUGS πŸ’€

please email suggestions, additions, patches and bugs to eddietwo@lcs.mit.edu. the following features have not made it into 3.0 as of yet:

  • Tournament mode.
  • Board setup mode.
bestie if you were waiting on tournament mode... keep waiting. πŸ™ˆ

πŸ“œ HISTORY πŸ“œ

xmahjongg version 3 is a complete rewrite by Eddie Kohler <eddietwo@lcs.mit.edu> of xmahjongg versions 1 and 2 by Jeff S. Young <jsy@cray.com>.

the default tileset was originally created in color by Dorothy Robinson <mokuren@teleport.com> with Mark A. Holm <markh@aracnet.com>. the publicly available version was in black-and-white. Holm copyrighted the tiles in 1988, giving permission to copy and distribute for non-profit purposes. the significantly altered color version that comes with xmahjongg was created by Eddie Kohler in 1993. the small tileset was found at http://www.mahjongg.com/, and is presumably by Berrie Bloem. the gnome and gnome2 tilesets were created by Jonathan Buzzard and Max Watson. the dorothys and dorwhite tilesets were made by Dorothy Robinson <mokuren@teleport.com>. the real tileset was scanned by Mark Sanctuary <sanctuary@jps.net>.

many of the layouts are based on layouts designed for Kyodai Mahjongg, a fun Windows Mah Jongg game. in particular, arena, ceremonial, deepwell, farandole, and theater are by Naoki Haga, and hourglass and papillon are by Vincent Krebs. Kyodai Mahjongg's Web homepage is http://www.kyodai.com/.


πŸ‘‘ AUTHOR πŸ‘‘

Eddie Kohler, eddietwo@lcs.mit.edu http://www.pdos.lcs.mit.edu/~eddietwo/

http://www.lcdf.org/~eddietwo/xmahjongg/ the xmahjongg home page.


okay so that's the whole page, bestie β€” every flag, every tileset, every little copyright line, all of it. this was Version 3.7, dated 5 Jan 2000, and it's still serving main character energy. go match some tiles. πŸ’–βœ¨πŸ€„