mahjong


Namemahjong JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://github.com/MahjongRepository/mahjong
SummaryMahjong hands calculation
upload_time2023-08-08 02:15:43
maintainer
docs_urlNone
authorAlexey Lisikhin
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Mahjong lib](https://github.com/MahjongRepository/mahjong/actions/workflows/lint_and_test.yml/badge.svg)](https://github.com/MahjongRepository/mahjong/actions/workflows/lint_and_test.yml)

This library can calculate hand cost (han, fu with details, yaku, and scores) for riichi mahjong (Japanese version).

Also calculating of shanten is supported.

The code was validated on tenhou.net phoenix replays in total on **11,120,125 hands**.

So, we can say that our hand calculator works the same way that tenhou.net hand calculation.

# How to install

```bash
pip install mahjong
```

# Supported rules and usage examples

You can find usage examples and information about all supported rules variations in the [wiki](https://github.com/MahjongRepository/mahjong/wiki)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MahjongRepository/mahjong",
    "name": "mahjong",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alexey Lisikhin",
    "author_email": "alexey@nihisil.com",
    "download_url": "https://files.pythonhosted.org/packages/3a/2a/abe1de6018ff11852bbd2816ab58021d57f38d085c223b0da40809571136/mahjong-1.2.1.tar.gz",
    "platform": null,
    "description": "[![Mahjong lib](https://github.com/MahjongRepository/mahjong/actions/workflows/lint_and_test.yml/badge.svg)](https://github.com/MahjongRepository/mahjong/actions/workflows/lint_and_test.yml)\n\nThis library can calculate hand cost (han, fu with details, yaku, and scores) for riichi mahjong (Japanese version).\n\nAlso calculating of shanten is supported.\n\nThe code was validated on tenhou.net phoenix replays in total on **11,120,125 hands**.\n\nSo, we can say that our hand calculator works the same way that tenhou.net hand calculation.\n\n# How to install\n\n```bash\npip install mahjong\n```\n\n# Supported rules and usage examples\n\nYou can find usage examples and information about all supported rules variations in the [wiki](https://github.com/MahjongRepository/mahjong/wiki)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mahjong hands calculation",
    "version": "1.2.1",
    "project_urls": {
        "Homepage": "https://github.com/MahjongRepository/mahjong"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e407a10f5470140412dc5c5ccc40a35842e18801f14ff3336367ec558b902b13",
                "md5": "a3221c38410dd0c35a3c12e342ddac61",
                "sha256": "5df358127a73a26751f1f60635c65e02e6f363ce70339d3478c396301163277e"
            },
            "downloads": -1,
            "filename": "mahjong-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3221c38410dd0c35a3c12e342ddac61",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 60942,
            "upload_time": "2023-08-08T02:15:41",
            "upload_time_iso_8601": "2023-08-08T02:15:41.668605Z",
            "url": "https://files.pythonhosted.org/packages/e4/07/a10f5470140412dc5c5ccc40a35842e18801f14ff3336367ec558b902b13/mahjong-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a2aabe1de6018ff11852bbd2816ab58021d57f38d085c223b0da40809571136",
                "md5": "ec7efb2acdd2cd1fb7ce33a6b343e6ab",
                "sha256": "afbef2f5fea656b73eacb6396176d1e80cd06123c24dbea27df87100e8502097"
            },
            "downloads": -1,
            "filename": "mahjong-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ec7efb2acdd2cd1fb7ce33a6b343e6ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 31011,
            "upload_time": "2023-08-08T02:15:43",
            "upload_time_iso_8601": "2023-08-08T02:15:43.691191Z",
            "url": "https://files.pythonhosted.org/packages/3a/2a/abe1de6018ff11852bbd2816ab58021d57f38d085c223b0da40809571136/mahjong-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-08 02:15:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MahjongRepository",
    "github_project": "mahjong",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mahjong"
}
        
Elapsed time: 0.46100s