# Mahjongg(3)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

Mahjongg - MicroEmacs 2009 version of the solitaire Mah Jongg game

## SYNOPSIS

Mahjongg

## DESCRIPTION

Mah Jongg is an ancient Chinese game usually played by four players with tiles similar to dominos. This is a MicroEmacs 2009 version which was inspired by the X-Windows version of the same game. The X-Windows version for the solitaire game originally seen on the PC and later ported to SunView.

## Theory Of Play

The object of the game is to remove all the tiles from the board. Tiles are removed by matching two identical tiles which have either an open left edge or open right edge. The only exception to this rule is that any open "flower" tile (bamboo `[BAMB]`, orchid `[ORCH]`, plum `[PLUM]`, or chrysanthemum `[CHRY]`) matches any other open "flower" tile and any open "season" tile (spring, summer, autumn, or winter) matches any other open "season" tile.

Tiles are stacked on the board, the height of the tile is indicated by the color coding as follows:-

`Level 5` - White
`Level 4` - Red
`Level 3` - Yellow
`Level 2` - Green
`Level 1` - Cyan

To remove a pair of tiles, click the left mouse button on a tile (which will show in the selection color) and then click the left mouse button on the matching tile. At this point, both tiles will disappear from the board. If after selecting the first tile, you decide that you don't wish to play that tile, simply reclick the left button on the selected tile, alternatively click the right button to deselect any selected tile.

To the right of the board are a number of control buttons. To select an option, click the left mouse button on it.

NEW

Start a new game (keyboard n).

SAME

Start the same game again (keyboard s).

QUIT

Exit the game (keyboard q).

HELP

This help page (keyboard esc h).

The counter shows the number of remaining tiles on the board, at the start of the game there are 144 tiles.

## NOTES

Mahjongg is a macro defined in `mahjongg.emf`.

Mah Jongg may only be played with a mouse, there is no keyboard support, with the exception of the re-start keys.

## ACKNOWLEDGEMENT

Thanks to Jeff S. Young who (I think) wrote the original X-Windows version, and whose manual page formed the basis of this page.

The tile patterns were inspired from the X-Windows tile patterns. The X-Windows tile patterns themselves are copyright 1988 by Mark A. Holm <tektronix!tessi!exc!markh>.

## SEE ALSO

Games, Match-It(3), Patience(3).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>