Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenny2github/mahjong
Abstract away the logic of mahjong games.
https://github.com/kenny2github/mahjong
engine game mahjong
Last synced: 9 days ago
JSON representation
Abstract away the logic of mahjong games.
- Host: GitHub
- URL: https://github.com/kenny2github/mahjong
- Owner: Kenny2github
- License: lgpl-3.0
- Created: 2021-01-25T19:47:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T07:57:53.000Z (8 months ago)
- Last Synced: 2024-10-17T06:51:48.020Z (19 days ago)
- Topics: engine, game, mahjong
- Language: Python
- Homepage: https://pypi.org/project/python-mahjong/
- Size: 233 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Mahjong
=======Abstract away the logic of Mahjong games (for oh, it is complicated!)
Only worry about the representation.Example Usage
-------------.. code-block:: python
>>> import mahjong
>>> game = mahjong.Game()
>>> question = game.play()
>>> next_question = question.answer(...)
>>> ...For full usage see the docs: https://mahjong.rtfd.io (once it's up) or https://github.com/Kenny2github/mahjong/wiki until then.