Hong Kong Old Style Mahjong Engine
- Python 100%
| hkos | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
HKOS (Hong Kong Old Style Mahjong)
A pure Python engine and Rule-Based AI agent for Hong Kong Old Style (HKOS) Mahjong.
This library provides a completely stateless, server-ready mathematical engine for validating hands, calculating complex Faan scoring, and managing game state. It also includes multi-difficulty Heuristic AI bots capable of evaluating the best combinations and safe discards.
Installation
Install the library directly from this repository using pip.
Quick Install
To install the latest version directly into your project's virtual environment, run:
pip install git+[https://vampire.church/operatorjen/hkos.git](https://vampire.church/operatorjen/hkos.git)
Running Tests
pytest -v