Skip to content

Releases: MahjongRepository/mahjong

v1.4.0

20 Oct 01:22

Choose a tag to compare

What's Changed

  • chore: Update astral-sh/setup-uv action by @Apricot-S in #78
  • chore: Update actions/checkout action by @Apricot-S in #80
  • chore: Add Python 3.14 support by @Apricot-S in #81
  • feat: Deprecate Shanten.number_characters and Shanten.number_isolated_tiles by @Apricot-S in #82
  • feat: Deprecate internal state properties of Shanten by @Apricot-S in #83
  • docs: Apply markdownlint rules to README by @Apricot-S in #87
  • docs: Add badges by @Apricot-S in #88
  • docs: Change uv venv to uv sync for accurate setup and dependency installation via pyproject.toml by @Apricot-S in #89

Full Changelog: v1.3.0...v1.4.0

v1.3.0

17 May 00:47

Choose a tag to compare

Breaking Changes

  • dropped support for Python 3.7 and 3.8

Bug fixes

  • fix: Correct miscalculation of shanten number for Seven Pairs (chiitoitsu, 七対子) by @Apricot-S in #61
  • fix: Correct miscalculation of shanten number for general form by @Apricot-S in #62

Other changes

  • migrate the project to a modern Python stack: uv and ruff
  • other minor improvements and optimizations along the way
  • add support for Python 3.13

New Contributors

Full Changelog: v1.2.1...v1.3.0

v1.2.1

08 Aug 02:20

Choose a tag to compare

Features

  • Adjust warning configs. Thanks @0num4 for contribution in PR #46

Chores

  • Fix type in the test name. Thanks @kianmeng for contribution in PR #45
  • Remove Python 3.6 support
  • Move wiki files to md files for easier diffs

v1.2.0

22 May 14:53

Choose a tag to compare

This release contains many improvements and bug fixes. The new version was tested over millions of real hanchans and many bugs were fixed.

Incompatibility highlight:

  • Python 2 support was dropped
  • Changes in interfaces, please refer doc/example.py for usage examples. For example now all four tiles should be in hand tiles when you have kan melds.

v1.1.11

02 Nov 07:42

Choose a tag to compare

  • Speed up performance a bit
  • Add support for Python 3.9

v1.1.10

11 May 13:18

Choose a tag to compare

  • Add japanese yaku names
  • Fix an issue with not correct ryuuiisou detection
  • Allow to print aka dora in TilesConverter.to_one_line_string() method ("0" symbol)
  • Add support for Python 3.8

v1.1.9

29 Jul 01:42

Choose a tag to compare

  • Add TilesConverter.one_line_string_to_136_array() and TilesConverter.one_line_string_to_34_array() methods

v1.1.8

26 Jul 02:07

Choose a tag to compare

  • Fix an issue with incorrect daburu chuuren poutou calculations
  • Allow passing '0' as a red five to tiles converter

v1.1.7

08 Apr 16:46

Choose a tag to compare

  • Introduce OptionalRules hand configuration

v1.1.6

11 Feb 01:56

Choose a tag to compare

  • Fix a bug when hatsu yaku was added to the hand instead of chun
  • Fix a bug where kokushi wasn't combined with tenhou/renhou/chihou
  • Add English names to all yaku
  • Add support of python 2.7
  • Add a way to pass aka dora to tile converter