Skip to main content

The classic UNIX xmahjongg for Python 3

Project description

python rewrite of the original xmahjongg-game from 1989:

https://www.lcdf.org/xmahjongg/

The python implementation does not need the X11 files anymore, however the name is still ‘pyxmahjongg’.

Installation

Installation can be done by pip:

pip install pyxmahjongg

It’s recommended to use a virtual environment.

Or you can download the sources: https://github.com/kbr/pyxmahjongg

Run the program

After installation with pip the program can get started from the command line, i.e. using a different layout and background than the default one:

pyxmahjongg -l deepwell -b sand

From the sources start the program manually:

python pyxmahjongg.py -h

Use the optional -h flag for help to change colors and layouts.

Requirements

Requires ‘pillow’ for image-handling.

‘pyxmahjongg’ is developed with Python 3.6 and and pillow 4.0.0 and not tested with earlier versions.

Remarks

This implementation uses the same layout-files as the original one but just the dorothys tileset. Thanks to Tabitha for finding background colors and naming.

Excerpt from the original documentation: The default tileset was originally created in color by Dorothy Robinson <mokuren@teleport.com> with Mark A. Holm <markh@aracnet.com>. The publically 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 later years.

License

Because of the original license it is permitted to use the tileset for non-profit purposes. As a consequence any commercial uses of this program and the used tileset is prohibited. Furthermore the usage of this program is entirely at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxmahjongg-0.2.5.tar.gz (48.7 kB view hashes)

Uploaded Source

Built Distribution

pyxmahjongg-0.2.5-py3-none-any.whl (54.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page