mahjong icon indicating copy to clipboard operation
mahjong copied to clipboard

Implementation of riichi mahjong related stuff (hand cost, shanten, agari end, etc.)

Results 4 mahjong issues
Sort by recently updated
recently updated
newest added

```python sh = Shanten() tiles = TilesConverter.string_to_34_array(man='123456789', honors='1111') print(sh.calculate_shanten_for_regular_hand(tiles)) tiles2 = TilesConverter.string_to_34_array(man='123456789', pin='1111') print(sh.calculate_shanten_for_regular_hand(tiles2)) ``` output ``` 1 0 ``` In shanten calculation, 4 non-honor tiles can be used as...

bug

**Description:** I encountered a potential issue with the tile reduction logic used in the hand calculation process. The current implementation seems to decrement the tile count incorrectly, which might lead...

The sample of "tiles" when Kan is misleading. wrong: ``` tiles = self.TilesConverter.string_to_136_array(honors='11133555666777') win_tile = self.TilesConverter.string_to_136_array(honors='3')[0] melds = [ Meld(meld_type=Meld.KAN, tiles=TilesConverter.string_to_136_array(honors='1111'), opened=False), Meld(meld_type=Meld.KAN, tiles=TilesConverter.string_to_136_array(honors='5555'), opened=False), Meld(meld_type=Meld.KAN, tiles=TilesConverter.string_to_136_array(honors='6666'), opened=False), Meld(meld_type=Meld.KAN, tiles=TilesConverter.string_to_136_array(honors='7777'),...

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.3.0. Release notes Sourced from black's releases. 24.3.0 Highlights This release is a milestone: it fixes Black's first CVE security vulnerability. If you run Black...

dependencies