mahjong_engine 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BlockDivider.d.ts +2 -2
- package/dist/BlockDivider.d.ts.map +1 -1
- package/dist/BlockDivider.js +17 -21
- package/dist/BlockDivider.js.map +1 -1
- package/dist/BlockHais.d.ts +4 -4
- package/dist/BlockHais.d.ts.map +1 -1
- package/dist/BlockHais.js +13 -17
- package/dist/BlockHais.js.map +1 -1
- package/dist/BlockHaisList.d.ts +2 -2
- package/dist/BlockHaisList.d.ts.map +1 -1
- package/dist/BlockHaisList.js +13 -17
- package/dist/BlockHaisList.js.map +1 -1
- package/dist/Hai.d.ts +1 -1
- package/dist/Hai.d.ts.map +1 -1
- package/dist/Hai.js +23 -27
- package/dist/Hai.js.map +1 -1
- package/dist/Hais.d.ts +1 -1
- package/dist/Hais.d.ts.map +1 -1
- package/dist/Hais.js +4 -8
- package/dist/Hais.js.map +1 -1
- package/dist/IMentsu.d.ts +3 -3
- package/dist/IMentsu.d.ts.map +1 -1
- package/dist/IMentsu.js +1 -2
- package/dist/MachiCalculator.d.ts +1 -1
- package/dist/MachiCalculator.d.ts.map +1 -1
- package/dist/MachiCalculator.js +7 -11
- package/dist/MachiCalculator.js.map +1 -1
- package/dist/MahjongConsts.js +12 -15
- package/dist/MahjongConsts.js.map +1 -1
- package/dist/Meld.d.ts +4 -4
- package/dist/Meld.d.ts.map +1 -1
- package/dist/Meld.js +11 -15
- package/dist/Meld.js.map +1 -1
- package/dist/Melds.d.ts +1 -1
- package/dist/Melds.d.ts.map +1 -1
- package/dist/Melds.js +1 -5
- package/dist/Melds.js.map +1 -1
- package/dist/MentsuAnalyzer.d.ts +2 -2
- package/dist/MentsuAnalyzer.d.ts.map +1 -1
- package/dist/MentsuAnalyzer.js +1 -5
- package/dist/MentsuAnalyzer.js.map +1 -1
- package/dist/PlayerContext.d.ts +3 -3
- package/dist/PlayerContext.d.ts.map +1 -1
- package/dist/PlayerContext.js +3 -7
- package/dist/PlayerContext.js.map +1 -1
- package/dist/PlayerHand.d.ts +2 -2
- package/dist/PlayerHand.d.ts.map +1 -1
- package/dist/PlayerHand.js +3 -7
- package/dist/PlayerHand.js.map +1 -1
- package/dist/index.js +14 -44
- package/dist/index.js.map +1 -1
- package/dist/modules/BlockDivider.d.ts +11 -0
- package/dist/modules/BlockDivider.d.ts.map +1 -0
- package/dist/modules/BlockDivider.js +110 -0
- package/dist/modules/BlockDivider.js.map +1 -0
- package/dist/modules/BlockHais.d.ts +26 -0
- package/dist/modules/BlockHais.d.ts.map +1 -0
- package/dist/modules/BlockHais.js +73 -0
- package/dist/modules/BlockHais.js.map +1 -0
- package/dist/modules/BlockHaisList.d.ts +19 -0
- package/dist/modules/BlockHaisList.d.ts.map +1 -0
- package/dist/modules/BlockHaisList.js +81 -0
- package/dist/modules/BlockHaisList.js.map +1 -0
- package/dist/modules/Hai.d.ts +16 -0
- package/dist/modules/Hai.d.ts.map +1 -0
- package/dist/modules/Hai.js +67 -0
- package/dist/modules/Hai.js.map +1 -0
- package/dist/modules/Hais.d.ts +15 -0
- package/dist/modules/Hais.d.ts.map +1 -0
- package/dist/modules/Hais.js +40 -0
- package/dist/modules/Hais.js.map +1 -0
- package/dist/modules/IMentsu.d.ts +20 -0
- package/dist/modules/IMentsu.d.ts.map +1 -0
- package/dist/modules/IMentsu.js +2 -0
- package/dist/modules/IMentsu.js.map +1 -0
- package/dist/modules/MachiCalculator.d.ts +7 -0
- package/dist/modules/MachiCalculator.d.ts.map +1 -0
- package/dist/modules/MachiCalculator.js +21 -0
- package/dist/modules/MachiCalculator.js.map +1 -0
- package/dist/modules/MahjongConsts.d.ts +39 -0
- package/dist/modules/MahjongConsts.d.ts.map +1 -0
- package/dist/modules/MahjongConsts.js +51 -0
- package/dist/modules/MahjongConsts.js.map +1 -0
- package/dist/modules/Meld.d.ts +25 -0
- package/dist/modules/Meld.d.ts.map +1 -0
- package/dist/modules/Meld.js +68 -0
- package/dist/modules/Meld.js.map +1 -0
- package/dist/modules/Melds.d.ts +9 -0
- package/dist/modules/Melds.d.ts.map +1 -0
- package/dist/modules/Melds.js +14 -0
- package/dist/modules/Melds.js.map +1 -0
- package/dist/modules/MentsuAnalyzer.d.ts +11 -0
- package/dist/modules/MentsuAnalyzer.d.ts.map +1 -0
- package/dist/modules/MentsuAnalyzer.js +19 -0
- package/dist/modules/MentsuAnalyzer.js.map +1 -0
- package/dist/modules/PlayerContext.d.ts +28 -0
- package/dist/modules/PlayerContext.d.ts.map +1 -0
- package/dist/modules/PlayerContext.js +24 -0
- package/dist/modules/PlayerContext.js.map +1 -0
- package/dist/modules/PlayerHand.d.ts +12 -0
- package/dist/modules/PlayerHand.d.ts.map +1 -0
- package/dist/modules/PlayerHand.js +24 -0
- package/dist/modules/PlayerHand.js.map +1 -0
- package/dist/modules/index.d.ts +15 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +15 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/tensuu/FuCalculator.d.ts +15 -0
- package/dist/modules/tensuu/FuCalculator.d.ts.map +1 -0
- package/dist/modules/tensuu/FuCalculator.js +100 -0
- package/dist/modules/tensuu/FuCalculator.js.map +1 -0
- package/dist/modules/tensuu/FuDetail.d.ts +8 -0
- package/dist/modules/tensuu/FuDetail.d.ts.map +1 -0
- package/dist/modules/tensuu/FuDetail.js +11 -0
- package/dist/modules/tensuu/FuDetail.js.map +1 -0
- package/dist/modules/tensuu/ScoreResolver.d.ts +12 -0
- package/dist/modules/tensuu/ScoreResolver.d.ts.map +1 -0
- package/dist/modules/tensuu/ScoreResolver.js +29 -0
- package/dist/modules/tensuu/ScoreResolver.js.map +1 -0
- package/dist/modules/tensuu/ScoreResult.d.ts +11 -0
- package/dist/modules/tensuu/ScoreResult.d.ts.map +1 -0
- package/dist/modules/tensuu/ScoreResult.js +15 -0
- package/dist/modules/tensuu/ScoreResult.js.map +1 -0
- package/dist/modules/tensuu/TensuuCalculator.d.ts +13 -0
- package/dist/modules/tensuu/TensuuCalculator.d.ts.map +1 -0
- package/dist/modules/tensuu/TensuuCalculator.js +35 -0
- package/dist/modules/tensuu/TensuuCalculator.js.map +1 -0
- package/dist/modules/tensuu/TensuuResult.d.ts +15 -0
- package/dist/modules/tensuu/TensuuResult.d.ts.map +1 -0
- package/dist/modules/tensuu/TensuuResult.js +15 -0
- package/dist/modules/tensuu/TensuuResult.js.map +1 -0
- package/dist/modules/tileDefs.d.ts +42 -0
- package/dist/modules/tileDefs.d.ts.map +1 -0
- package/dist/modules/tileDefs.js +20 -0
- package/dist/modules/tileDefs.js.map +1 -0
- package/dist/modules/yaku/NormalYakuChecker.d.ts +7 -0
- package/dist/modules/yaku/NormalYakuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/NormalYakuChecker.js +33 -0
- package/dist/modules/yaku/NormalYakuChecker.js.map +1 -0
- package/dist/modules/yaku/YakuChecker.d.ts +7 -0
- package/dist/modules/yaku/YakuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/YakuChecker.js +23 -0
- package/dist/modules/yaku/YakuChecker.js.map +1 -0
- package/dist/modules/yaku/YakuCheckerBase.d.ts +33 -0
- package/dist/modules/yaku/YakuCheckerBase.d.ts.map +1 -0
- package/dist/modules/yaku/YakuCheckerBase.js +150 -0
- package/dist/modules/yaku/YakuCheckerBase.js.map +1 -0
- package/dist/modules/yaku/YakuContext.d.ts +14 -0
- package/dist/modules/yaku/YakuContext.d.ts.map +1 -0
- package/dist/modules/yaku/YakuContext.js +17 -0
- package/dist/modules/yaku/YakuContext.js.map +1 -0
- package/dist/modules/yaku/YakumanChecker.d.ts +7 -0
- package/dist/modules/yaku/YakumanChecker.d.ts.map +1 -0
- package/dist/modules/yaku/YakumanChecker.js +32 -0
- package/dist/modules/yaku/YakumanChecker.js.map +1 -0
- package/dist/modules/yaku/index.d.ts +6 -0
- package/dist/modules/yaku/index.d.ts.map +1 -0
- package/dist/modules/yaku/index.js +76 -0
- package/dist/modules/yaku/index.js.map +1 -0
- package/dist/modules/yaku/normal/ChinitsuChecker.d.ts +9 -0
- package/dist/modules/yaku/normal/ChinitsuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/ChinitsuChecker.js +20 -0
- package/dist/modules/yaku/normal/ChinitsuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/ChitoitsuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/ChitoitsuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/ChitoitsuChecker.js +16 -0
- package/dist/modules/yaku/normal/ChitoitsuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/DoukouChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/DoukouChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/DoukouChecker.js +13 -0
- package/dist/modules/yaku/normal/DoukouChecker.js.map +1 -0
- package/dist/modules/yaku/normal/HonchanChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/HonchanChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/HonchanChecker.js +18 -0
- package/dist/modules/yaku/normal/HonchanChecker.js.map +1 -0
- package/dist/modules/yaku/normal/HonitsuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/HonitsuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/HonitsuChecker.js +16 -0
- package/dist/modules/yaku/normal/HonitsuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/HonrotoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/HonrotoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/HonrotoChecker.js +17 -0
- package/dist/modules/yaku/normal/HonrotoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/IipekoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/IipekoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/IipekoChecker.js +14 -0
- package/dist/modules/yaku/normal/IipekoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/IttsuuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/IttsuuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/IttsuuChecker.js +21 -0
- package/dist/modules/yaku/normal/IttsuuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/JunchanChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/JunchanChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/JunchanChecker.js +15 -0
- package/dist/modules/yaku/normal/JunchanChecker.js.map +1 -0
- package/dist/modules/yaku/normal/KazehaiChecker.d.ts +11 -0
- package/dist/modules/yaku/normal/KazehaiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/KazehaiChecker.js +20 -0
- package/dist/modules/yaku/normal/KazehaiChecker.js.map +1 -0
- package/dist/modules/yaku/normal/MenzenTsumoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/MenzenTsumoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/MenzenTsumoChecker.js +12 -0
- package/dist/modules/yaku/normal/MenzenTsumoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/PinfuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/PinfuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/PinfuChecker.js +26 -0
- package/dist/modules/yaku/normal/PinfuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/RenpuuhaiChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/RenpuuhaiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/RenpuuhaiChecker.js +18 -0
- package/dist/modules/yaku/normal/RenpuuhaiChecker.js.map +1 -0
- package/dist/modules/yaku/normal/RyanpekoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/RyanpekoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/RyanpekoChecker.js +14 -0
- package/dist/modules/yaku/normal/RyanpekoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/SanankoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/SanankoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/SanankoChecker.js +13 -0
- package/dist/modules/yaku/normal/SanankoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/SankantsuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/SankantsuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/SankantsuChecker.js +13 -0
- package/dist/modules/yaku/normal/SankantsuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/SanshokuChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/SanshokuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/SanshokuChecker.js +13 -0
- package/dist/modules/yaku/normal/SanshokuChecker.js.map +1 -0
- package/dist/modules/yaku/normal/ShosangenChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/ShosangenChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/ShosangenChecker.js +16 -0
- package/dist/modules/yaku/normal/ShosangenChecker.js.map +1 -0
- package/dist/modules/yaku/normal/TanyaoChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/TanyaoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/TanyaoChecker.js +14 -0
- package/dist/modules/yaku/normal/TanyaoChecker.js.map +1 -0
- package/dist/modules/yaku/normal/ToitoiChecker.d.ts +8 -0
- package/dist/modules/yaku/normal/ToitoiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/ToitoiChecker.js +13 -0
- package/dist/modules/yaku/normal/ToitoiChecker.js.map +1 -0
- package/dist/modules/yaku/normal/YakuhaiChecker.d.ts +9 -0
- package/dist/modules/yaku/normal/YakuhaiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/normal/YakuhaiChecker.js +18 -0
- package/dist/modules/yaku/normal/YakuhaiChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/ChinrotoChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/ChinrotoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/ChinrotoChecker.js +9 -0
- package/dist/modules/yaku/yakuman/ChinrotoChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/Churen9Checker.d.ts +10 -0
- package/dist/modules/yaku/yakuman/Churen9Checker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/Churen9Checker.js +13 -0
- package/dist/modules/yaku/yakuman/Churen9Checker.js.map +1 -0
- package/dist/modules/yaku/yakuman/ChurenChecker.d.ts +7 -0
- package/dist/modules/yaku/yakuman/ChurenChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/ChurenChecker.js +29 -0
- package/dist/modules/yaku/yakuman/ChurenChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/DaisangenChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/DaisangenChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/DaisangenChecker.js +11 -0
- package/dist/modules/yaku/yakuman/DaisangenChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/DaisushiChecker.d.ts +8 -0
- package/dist/modules/yaku/yakuman/DaisushiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/DaisushiChecker.js +16 -0
- package/dist/modules/yaku/yakuman/DaisushiChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/ExtendedYakumanChecker.d.ts +9 -0
- package/dist/modules/yaku/yakuman/ExtendedYakumanChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/ExtendedYakumanChecker.js +14 -0
- package/dist/modules/yaku/yakuman/ExtendedYakumanChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/Kokushi13Checker.d.ts +10 -0
- package/dist/modules/yaku/yakuman/Kokushi13Checker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/Kokushi13Checker.js +13 -0
- package/dist/modules/yaku/yakuman/Kokushi13Checker.js.map +1 -0
- package/dist/modules/yaku/yakuman/KokushiChecker.d.ts +7 -0
- package/dist/modules/yaku/yakuman/KokushiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/KokushiChecker.js +14 -0
- package/dist/modules/yaku/yakuman/KokushiChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/RyuisoChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/RyuisoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/RyuisoChecker.js +13 -0
- package/dist/modules/yaku/yakuman/RyuisoChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/ShosushiChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/ShosushiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/ShosushiChecker.js +11 -0
- package/dist/modules/yaku/yakuman/ShosushiChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/SuankoChecker.d.ts +7 -0
- package/dist/modules/yaku/yakuman/SuankoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/SuankoChecker.js +13 -0
- package/dist/modules/yaku/yakuman/SuankoChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/SuankoTankiChecker.d.ts +8 -0
- package/dist/modules/yaku/yakuman/SuankoTankiChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/SuankoTankiChecker.js +24 -0
- package/dist/modules/yaku/yakuman/SuankoTankiChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/SukantsuChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/SukantsuChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/SukantsuChecker.js +8 -0
- package/dist/modules/yaku/yakuman/SukantsuChecker.js.map +1 -0
- package/dist/modules/yaku/yakuman/TsuisoChecker.d.ts +6 -0
- package/dist/modules/yaku/yakuman/TsuisoChecker.d.ts.map +1 -0
- package/dist/modules/yaku/yakuman/TsuisoChecker.js +9 -0
- package/dist/modules/yaku/yakuman/TsuisoChecker.js.map +1 -0
- package/dist/tensuu/FuCalculator.d.ts +2 -2
- package/dist/tensuu/FuCalculator.d.ts.map +1 -1
- package/dist/tensuu/FuCalculator.js +25 -29
- package/dist/tensuu/FuCalculator.js.map +1 -1
- package/dist/tensuu/FuDetail.d.ts +1 -1
- package/dist/tensuu/FuDetail.d.ts.map +1 -1
- package/dist/tensuu/FuDetail.js +1 -5
- package/dist/tensuu/FuDetail.js.map +1 -1
- package/dist/tensuu/ScoreResolver.d.ts +2 -2
- package/dist/tensuu/ScoreResolver.d.ts.map +1 -1
- package/dist/tensuu/ScoreResolver.js +7 -11
- package/dist/tensuu/ScoreResolver.js.map +1 -1
- package/dist/tensuu/ScoreResult.d.ts +2 -2
- package/dist/tensuu/ScoreResult.d.ts.map +1 -1
- package/dist/tensuu/ScoreResult.js +1 -5
- package/dist/tensuu/ScoreResult.js.map +1 -1
- package/dist/tensuu/TensuuCalculator.d.ts +1 -1
- package/dist/tensuu/TensuuCalculator.d.ts.map +1 -1
- package/dist/tensuu/TensuuCalculator.js +3 -7
- package/dist/tensuu/TensuuCalculator.js.map +1 -1
- package/dist/tensuu/TensuuResult.js +1 -5
- package/dist/tensuu/TensuuResult.js.map +1 -1
- package/dist/tests/fu.test.d.ts +2 -0
- package/dist/tests/fu.test.d.ts.map +1 -0
- package/dist/tests/fu.test.js +39 -0
- package/dist/tests/fu.test.js.map +1 -0
- package/dist/tests/machi/chinitsu.d.ts +6 -0
- package/dist/tests/machi/chinitsu.d.ts.map +1 -0
- package/dist/tests/machi/chinitsu.js +138 -0
- package/dist/tests/machi/chinitsu.js.map +1 -0
- package/dist/tests/machi/chitoitsu.d.ts +6 -0
- package/dist/tests/machi/chitoitsu.d.ts.map +1 -0
- package/dist/tests/machi/chitoitsu.js +13 -0
- package/dist/tests/machi/chitoitsu.js.map +1 -0
- package/dist/tests/machi/kokushi.d.ts +6 -0
- package/dist/tests/machi/kokushi.d.ts.map +1 -0
- package/dist/tests/machi/kokushi.js +23 -0
- package/dist/tests/machi/kokushi.js.map +1 -0
- package/dist/tests/machi/maisuu.d.ts +6 -0
- package/dist/tests/machi/maisuu.d.ts.map +1 -0
- package/dist/tests/machi/maisuu.js +78 -0
- package/dist/tests/machi/maisuu.js.map +1 -0
- package/dist/tests/machi.test.d.ts +2 -0
- package/dist/tests/machi.test.d.ts.map +1 -0
- package/dist/tests/machi.test.js +87 -0
- package/dist/tests/machi.test.js.map +1 -0
- package/dist/tests/machiType.test.d.ts +2 -0
- package/dist/tests/machiType.test.d.ts.map +1 -0
- package/dist/tests/machiType.test.js +79 -0
- package/dist/tests/machiType.test.js.map +1 -0
- package/dist/tests/score.test.d.ts +2 -0
- package/dist/tests/score.test.d.ts.map +1 -0
- package/dist/tests/score.test.js +25 -0
- package/dist/tests/score.test.js.map +1 -0
- package/dist/tests/tehaiCaseRunner.d.ts +18 -0
- package/dist/tests/tehaiCaseRunner.d.ts.map +1 -0
- package/dist/tests/tehaiCaseRunner.js +49 -0
- package/dist/tests/tehaiCaseRunner.js.map +1 -0
- package/dist/tests/tensuu/fu.d.ts +3 -0
- package/dist/tests/tensuu/fu.d.ts.map +1 -0
- package/dist/tests/tensuu/fu.js +271 -0
- package/dist/tests/tensuu/fu.js.map +1 -0
- package/dist/tests/tensuu/score.d.ts +3 -0
- package/dist/tests/tensuu/score.d.ts.map +1 -0
- package/dist/tests/tensuu/score.js +45 -0
- package/dist/tests/tensuu/score.js.map +1 -0
- package/dist/tests/tensuu/tensuuNum.d.ts +3 -0
- package/dist/tests/tensuu/tensuuNum.d.ts.map +1 -0
- package/dist/tests/tensuu/tensuuNum.js +291 -0
- package/dist/tests/tensuu/tensuuNum.js.map +1 -0
- package/dist/tests/tensuuFromNum.test.d.ts +2 -0
- package/dist/tests/tensuuFromNum.test.d.ts.map +1 -0
- package/dist/tests/tensuuFromNum.test.js +13 -0
- package/dist/tests/tensuuFromNum.test.js.map +1 -0
- package/dist/tests/testConsts.d.ts +42 -0
- package/dist/tests/testConsts.d.ts.map +1 -0
- package/dist/tests/testConsts.js +2 -0
- package/dist/tests/testConsts.js.map +1 -0
- package/dist/tests/toBlock.test.d.ts +2 -0
- package/dist/tests/toBlock.test.d.ts.map +1 -0
- package/dist/tests/toBlock.test.js +130 -0
- package/dist/tests/toBlock.test.js.map +1 -0
- package/dist/tests/yaku/normal.d.ts +3 -0
- package/dist/tests/yaku/normal.d.ts.map +1 -0
- package/dist/tests/yaku/normal.js +1045 -0
- package/dist/tests/yaku/normal.js.map +1 -0
- package/dist/tests/yaku/yakuman.d.ts +3 -0
- package/dist/tests/yaku/yakuman.d.ts.map +1 -0
- package/dist/tests/yaku/yakuman.js +366 -0
- package/dist/tests/yaku/yakuman.js.map +1 -0
- package/dist/tests/yaku.test.d.ts +2 -0
- package/dist/tests/yaku.test.d.ts.map +1 -0
- package/dist/tests/yaku.test.js +25 -0
- package/dist/tests/yaku.test.js.map +1 -0
- package/dist/tileDefs.js +1 -4
- package/dist/tileDefs.js.map +1 -1
- package/dist/yaku/NormalYakuChecker.d.ts +1 -1
- package/dist/yaku/NormalYakuChecker.d.ts.map +1 -1
- package/dist/yaku/NormalYakuChecker.js +8 -12
- package/dist/yaku/NormalYakuChecker.js.map +1 -1
- package/dist/yaku/YakuChecker.d.ts +1 -1
- package/dist/yaku/YakuChecker.d.ts.map +1 -1
- package/dist/yaku/YakuChecker.js +5 -9
- package/dist/yaku/YakuChecker.js.map +1 -1
- package/dist/yaku/YakuCheckerBase.d.ts +4 -4
- package/dist/yaku/YakuCheckerBase.d.ts.map +1 -1
- package/dist/yaku/YakuCheckerBase.js +13 -17
- package/dist/yaku/YakuCheckerBase.js.map +1 -1
- package/dist/yaku/YakuContext.d.ts +5 -5
- package/dist/yaku/YakuContext.d.ts.map +1 -1
- package/dist/yaku/YakuContext.js +1 -5
- package/dist/yaku/YakuContext.js.map +1 -1
- package/dist/yaku/YakumanChecker.d.ts +1 -1
- package/dist/yaku/YakumanChecker.d.ts.map +1 -1
- package/dist/yaku/YakumanChecker.js +6 -10
- package/dist/yaku/YakumanChecker.js.map +1 -1
- package/dist/yaku/index.d.ts +2 -2
- package/dist/yaku/index.d.ts.map +1 -1
- package/dist/yaku/index.js +73 -76
- package/dist/yaku/index.js.map +1 -1
- package/dist/yaku/normal/ChinitsuChecker.d.ts +2 -2
- package/dist/yaku/normal/ChinitsuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/ChinitsuChecker.js +2 -6
- package/dist/yaku/normal/ChinitsuChecker.js.map +1 -1
- package/dist/yaku/normal/ChitoitsuChecker.d.ts +2 -2
- package/dist/yaku/normal/ChitoitsuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/ChitoitsuChecker.js +4 -8
- package/dist/yaku/normal/ChitoitsuChecker.js.map +1 -1
- package/dist/yaku/normal/DoukouChecker.d.ts +2 -2
- package/dist/yaku/normal/DoukouChecker.d.ts.map +1 -1
- package/dist/yaku/normal/DoukouChecker.js +2 -6
- package/dist/yaku/normal/DoukouChecker.js.map +1 -1
- package/dist/yaku/normal/HonchanChecker.d.ts +2 -2
- package/dist/yaku/normal/HonchanChecker.d.ts.map +1 -1
- package/dist/yaku/normal/HonchanChecker.js +4 -8
- package/dist/yaku/normal/HonchanChecker.js.map +1 -1
- package/dist/yaku/normal/HonitsuChecker.d.ts +2 -2
- package/dist/yaku/normal/HonitsuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/HonitsuChecker.js +4 -8
- package/dist/yaku/normal/HonitsuChecker.js.map +1 -1
- package/dist/yaku/normal/HonrotoChecker.d.ts +2 -2
- package/dist/yaku/normal/HonrotoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/HonrotoChecker.js +4 -8
- package/dist/yaku/normal/HonrotoChecker.js.map +1 -1
- package/dist/yaku/normal/IipekoChecker.d.ts +2 -2
- package/dist/yaku/normal/IipekoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/IipekoChecker.js +2 -6
- package/dist/yaku/normal/IipekoChecker.js.map +1 -1
- package/dist/yaku/normal/IttsuuChecker.d.ts +2 -2
- package/dist/yaku/normal/IttsuuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/IttsuuChecker.js +2 -6
- package/dist/yaku/normal/IttsuuChecker.js.map +1 -1
- package/dist/yaku/normal/JunchanChecker.d.ts +2 -2
- package/dist/yaku/normal/JunchanChecker.d.ts.map +1 -1
- package/dist/yaku/normal/JunchanChecker.js +4 -8
- package/dist/yaku/normal/JunchanChecker.js.map +1 -1
- package/dist/yaku/normal/KazehaiChecker.d.ts +3 -3
- package/dist/yaku/normal/KazehaiChecker.d.ts.map +1 -1
- package/dist/yaku/normal/KazehaiChecker.js +4 -8
- package/dist/yaku/normal/KazehaiChecker.js.map +1 -1
- package/dist/yaku/normal/MenzenTsumoChecker.d.ts +2 -2
- package/dist/yaku/normal/MenzenTsumoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/MenzenTsumoChecker.js +2 -6
- package/dist/yaku/normal/MenzenTsumoChecker.js.map +1 -1
- package/dist/yaku/normal/PinfuChecker.d.ts +2 -2
- package/dist/yaku/normal/PinfuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/PinfuChecker.js +9 -13
- package/dist/yaku/normal/PinfuChecker.js.map +1 -1
- package/dist/yaku/normal/RenpuuhaiChecker.d.ts +2 -2
- package/dist/yaku/normal/RenpuuhaiChecker.d.ts.map +1 -1
- package/dist/yaku/normal/RenpuuhaiChecker.js +4 -8
- package/dist/yaku/normal/RenpuuhaiChecker.js.map +1 -1
- package/dist/yaku/normal/RyanpekoChecker.d.ts +2 -2
- package/dist/yaku/normal/RyanpekoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/RyanpekoChecker.js +2 -6
- package/dist/yaku/normal/RyanpekoChecker.js.map +1 -1
- package/dist/yaku/normal/SanankoChecker.d.ts +2 -2
- package/dist/yaku/normal/SanankoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/SanankoChecker.js +2 -6
- package/dist/yaku/normal/SanankoChecker.js.map +1 -1
- package/dist/yaku/normal/SankantsuChecker.d.ts +2 -2
- package/dist/yaku/normal/SankantsuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/SankantsuChecker.js +2 -6
- package/dist/yaku/normal/SankantsuChecker.js.map +1 -1
- package/dist/yaku/normal/SanshokuChecker.d.ts +2 -2
- package/dist/yaku/normal/SanshokuChecker.d.ts.map +1 -1
- package/dist/yaku/normal/SanshokuChecker.js +2 -6
- package/dist/yaku/normal/SanshokuChecker.js.map +1 -1
- package/dist/yaku/normal/ShosangenChecker.d.ts +2 -2
- package/dist/yaku/normal/ShosangenChecker.d.ts.map +1 -1
- package/dist/yaku/normal/ShosangenChecker.js +2 -6
- package/dist/yaku/normal/ShosangenChecker.js.map +1 -1
- package/dist/yaku/normal/TanyaoChecker.d.ts +2 -2
- package/dist/yaku/normal/TanyaoChecker.d.ts.map +1 -1
- package/dist/yaku/normal/TanyaoChecker.js +2 -6
- package/dist/yaku/normal/TanyaoChecker.js.map +1 -1
- package/dist/yaku/normal/ToitoiChecker.d.ts +2 -2
- package/dist/yaku/normal/ToitoiChecker.d.ts.map +1 -1
- package/dist/yaku/normal/ToitoiChecker.js +2 -6
- package/dist/yaku/normal/ToitoiChecker.js.map +1 -1
- package/dist/yaku/normal/YakuhaiChecker.d.ts +2 -2
- package/dist/yaku/normal/YakuhaiChecker.d.ts.map +1 -1
- package/dist/yaku/normal/YakuhaiChecker.js +4 -8
- package/dist/yaku/normal/YakuhaiChecker.js.map +1 -1
- package/dist/yaku/yakuman/ChinrotoChecker.d.ts +1 -1
- package/dist/yaku/yakuman/ChinrotoChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/ChinrotoChecker.js +2 -6
- package/dist/yaku/yakuman/ChinrotoChecker.js.map +1 -1
- package/dist/yaku/yakuman/Churen9Checker.d.ts +3 -3
- package/dist/yaku/yakuman/Churen9Checker.d.ts.map +1 -1
- package/dist/yaku/yakuman/Churen9Checker.js +4 -8
- package/dist/yaku/yakuman/Churen9Checker.js.map +1 -1
- package/dist/yaku/yakuman/ChurenChecker.d.ts +1 -1
- package/dist/yaku/yakuman/ChurenChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/ChurenChecker.js +4 -8
- package/dist/yaku/yakuman/ChurenChecker.js.map +1 -1
- package/dist/yaku/yakuman/DaisangenChecker.d.ts +1 -1
- package/dist/yaku/yakuman/DaisangenChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/DaisangenChecker.js +2 -6
- package/dist/yaku/yakuman/DaisangenChecker.js.map +1 -1
- package/dist/yaku/yakuman/DaisushiChecker.d.ts +2 -2
- package/dist/yaku/yakuman/DaisushiChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/DaisushiChecker.js +2 -6
- package/dist/yaku/yakuman/DaisushiChecker.js.map +1 -1
- package/dist/yaku/yakuman/ExtendedYakumanChecker.d.ts +2 -2
- package/dist/yaku/yakuman/ExtendedYakumanChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/ExtendedYakumanChecker.js +2 -6
- package/dist/yaku/yakuman/ExtendedYakumanChecker.js.map +1 -1
- package/dist/yaku/yakuman/Kokushi13Checker.d.ts +3 -3
- package/dist/yaku/yakuman/Kokushi13Checker.d.ts.map +1 -1
- package/dist/yaku/yakuman/Kokushi13Checker.js +4 -8
- package/dist/yaku/yakuman/Kokushi13Checker.js.map +1 -1
- package/dist/yaku/yakuman/KokushiChecker.d.ts +1 -1
- package/dist/yaku/yakuman/KokushiChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/KokushiChecker.js +4 -8
- package/dist/yaku/yakuman/KokushiChecker.js.map +1 -1
- package/dist/yaku/yakuman/RyuisoChecker.d.ts +1 -1
- package/dist/yaku/yakuman/RyuisoChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/RyuisoChecker.js +2 -6
- package/dist/yaku/yakuman/RyuisoChecker.js.map +1 -1
- package/dist/yaku/yakuman/ShosushiChecker.d.ts +1 -1
- package/dist/yaku/yakuman/ShosushiChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/ShosushiChecker.js +2 -6
- package/dist/yaku/yakuman/ShosushiChecker.js.map +1 -1
- package/dist/yaku/yakuman/SuankoChecker.d.ts +1 -1
- package/dist/yaku/yakuman/SuankoChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/SuankoChecker.js +2 -6
- package/dist/yaku/yakuman/SuankoChecker.js.map +1 -1
- package/dist/yaku/yakuman/SuankoTankiChecker.d.ts +2 -2
- package/dist/yaku/yakuman/SuankoTankiChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/SuankoTankiChecker.js +6 -10
- package/dist/yaku/yakuman/SuankoTankiChecker.js.map +1 -1
- package/dist/yaku/yakuman/SukantsuChecker.d.ts +1 -1
- package/dist/yaku/yakuman/SukantsuChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/SukantsuChecker.js +2 -6
- package/dist/yaku/yakuman/SukantsuChecker.js.map +1 -1
- package/dist/yaku/yakuman/TsuisoChecker.d.ts +1 -1
- package/dist/yaku/yakuman/TsuisoChecker.d.ts.map +1 -1
- package/dist/yaku/yakuman/TsuisoChecker.js +2 -6
- package/dist/yaku/yakuman/TsuisoChecker.js.map +1 -1
- package/jest.config.js +3 -0
- package/modules/BlockDivider.ts +4 -4
- package/modules/BlockHais.ts +4 -4
- package/modules/BlockHaisList.ts +2 -2
- package/modules/Hai.ts +2 -2
- package/modules/Hais.ts +1 -1
- package/modules/IMentsu.ts +3 -3
- package/modules/MachiCalculator.ts +3 -3
- package/modules/Meld.ts +4 -4
- package/modules/Melds.ts +1 -1
- package/modules/MentsuAnalyzer.ts +2 -2
- package/modules/PlayerContext.ts +3 -3
- package/modules/PlayerHand.ts +3 -3
- package/modules/tensuu/FuCalculator.ts +5 -5
- package/modules/tensuu/FuDetail.ts +1 -1
- package/modules/tensuu/ScoreResolver.ts +5 -5
- package/modules/tensuu/ScoreResult.ts +2 -2
- package/modules/tensuu/TensuuCalculator.ts +1 -1
- package/modules/yaku/NormalYakuChecker.ts +3 -3
- package/modules/yaku/YakuChecker.ts +3 -6
- package/modules/yaku/YakuCheckerBase.ts +7 -7
- package/modules/yaku/YakuContext.ts +5 -5
- package/modules/yaku/YakumanChecker.ts +3 -3
- package/modules/yaku/index.ts +36 -36
- package/modules/yaku/normal/ChinitsuChecker.ts +2 -3
- package/modules/yaku/normal/ChitoitsuChecker.ts +3 -4
- package/modules/yaku/normal/DoukouChecker.ts +2 -2
- package/modules/yaku/normal/HonchanChecker.ts +4 -5
- package/modules/yaku/normal/HonitsuChecker.ts +3 -4
- package/modules/yaku/normal/HonrotoChecker.ts +4 -5
- package/modules/yaku/normal/IipekoChecker.ts +2 -3
- package/modules/yaku/normal/IttsuuChecker.ts +2 -5
- package/modules/yaku/normal/JunchanChecker.ts +4 -5
- package/modules/yaku/normal/KazehaiChecker.ts +4 -5
- package/modules/yaku/normal/MenzenTsumoChecker.ts +2 -2
- package/modules/yaku/normal/PinfuChecker.ts +5 -5
- package/modules/yaku/normal/RenpuuhaiChecker.ts +3 -3
- package/modules/yaku/normal/RyanpekoChecker.ts +2 -3
- package/modules/yaku/normal/SanankoChecker.ts +2 -3
- package/modules/yaku/normal/SankantsuChecker.ts +2 -2
- package/modules/yaku/normal/SanshokuChecker.ts +2 -2
- package/modules/yaku/normal/ShosangenChecker.ts +2 -3
- package/modules/yaku/normal/TanyaoChecker.ts +2 -3
- package/modules/yaku/normal/ToitoiChecker.ts +2 -3
- package/modules/yaku/normal/YakuhaiChecker.ts +4 -4
- package/modules/yaku/yakuman/ChinrotoChecker.ts +1 -2
- package/modules/yaku/yakuman/Churen9Checker.ts +4 -4
- package/modules/yaku/yakuman/ChurenChecker.ts +2 -3
- package/modules/yaku/yakuman/DaisangenChecker.ts +1 -2
- package/modules/yaku/yakuman/DaisushiChecker.ts +2 -3
- package/modules/yaku/yakuman/ExtendedYakumanChecker.ts +2 -2
- package/modules/yaku/yakuman/Kokushi13Checker.ts +4 -4
- package/modules/yaku/yakuman/KokushiChecker.ts +2 -2
- package/modules/yaku/yakuman/RyuisoChecker.ts +1 -1
- package/modules/yaku/yakuman/ShosushiChecker.ts +1 -1
- package/modules/yaku/yakuman/SuankoChecker.ts +1 -1
- package/modules/yaku/yakuman/SuankoTankiChecker.ts +4 -5
- package/modules/yaku/yakuman/SukantsuChecker.ts +1 -1
- package/modules/yaku/yakuman/TsuisoChecker.ts +1 -1
- package/package.json +29 -29
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +26 -23
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { IMentsu } from '../../IMentsu';
|
|
4
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
5
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { IMentsu } from '../../IMentsu.js';
|
|
4
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
6
5
|
|
|
7
6
|
export class HonchanChecker extends YakuCheckerBase{
|
|
8
7
|
protected yakuName: string = "混全帯么九";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { HaiType } from '../../MahjongConsts';
|
|
4
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { HaiType } from '../../MahjongConsts.js';
|
|
5
4
|
|
|
6
5
|
export class HonitsuChecker extends YakuCheckerBase{
|
|
7
6
|
protected yakuName: string = "混一色";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { IMentsu } from '../../IMentsu';
|
|
4
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
5
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { IMentsu } from '../../IMentsu.js';
|
|
4
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
6
5
|
|
|
7
6
|
export class HonrotoChecker extends YakuCheckerBase{
|
|
8
7
|
protected yakuName: string = "混老頭";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class IipekoChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "一盃口";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { HaiType } from '../../MahjongConsts';
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
6
3
|
|
|
7
4
|
export class IttsuuChecker extends YakuCheckerBase{
|
|
8
5
|
protected yakuName: string = "一気通貫";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { IMentsu } from '../../IMentsu';
|
|
4
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
5
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { IMentsu } from '../../IMentsu.js';
|
|
4
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
6
5
|
|
|
7
6
|
export class JunchanChecker extends YakuCheckerBase{
|
|
8
7
|
protected yakuName: string = "純全帯么九";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
4
|
-
import { Wind } from '../../tileDefs';
|
|
5
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
4
|
+
import { Wind } from '../../tileDefs.js';
|
|
6
5
|
|
|
7
6
|
export class KazehaiChecker extends YakuCheckerBase{
|
|
8
7
|
protected yakuName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
3
|
|
|
4
4
|
export class MenzenTsumoChecker extends YakuCheckerBase{
|
|
5
5
|
protected yakuName: string = "門前清自摸和";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { BlockHais } from '../../BlockHais';
|
|
4
|
-
import { MachiType } from '../../MahjongConsts';
|
|
5
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { BlockHais } from '../../BlockHais.js';
|
|
4
|
+
import { MachiType } from '../../MahjongConsts.js';
|
|
5
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
6
6
|
|
|
7
7
|
export class PinfuChecker extends YakuCheckerBase{
|
|
8
8
|
protected yakuName: string = "平和";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
4
4
|
|
|
5
5
|
export class RenpuuhaiChecker extends YakuCheckerBase{
|
|
6
6
|
protected yakuName: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class RyanpekoChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "二盃口";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class SanankoChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "三暗刻";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
3
|
|
|
4
4
|
export class SankantsuChecker extends YakuCheckerBase{
|
|
5
5
|
protected yakuName: string = "三槓子";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
3
|
|
|
4
4
|
export class SanshokuChecker extends YakuCheckerBase{
|
|
5
5
|
protected yakuName: string = "三色同順";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class ShosangenChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "小三元";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class TanyaoChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "断么九";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
4
3
|
|
|
5
4
|
export class ToitoiChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "対々和";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { YakuContext } from '../YakuContext';
|
|
2
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
3
|
-
import { IMentsu } from '../../IMentsu';
|
|
4
|
-
import { MentsuAnalyzer } from '../../MentsuAnalyzer';
|
|
1
|
+
import { YakuContext } from '../YakuContext.js';
|
|
2
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
3
|
+
import { IMentsu } from '../../IMentsu.js';
|
|
4
|
+
import { MentsuAnalyzer } from '../../MentsuAnalyzer.js';
|
|
5
5
|
|
|
6
6
|
export class YakuhaiChecker extends YakuCheckerBase{
|
|
7
7
|
protected yakuName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtendedYakumanChecker } from './ExtendedYakumanChecker';
|
|
2
|
-
import { YakuContext } from '../YakuContext';
|
|
3
|
-
import { ChurenChecker } from './ChurenChecker';
|
|
4
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
1
|
+
import { ExtendedYakumanChecker } from './ExtendedYakumanChecker.js';
|
|
2
|
+
import { YakuContext } from '../YakuContext.js';
|
|
3
|
+
import { ChurenChecker } from './ChurenChecker.js';
|
|
4
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
5
5
|
|
|
6
6
|
export class Churen9Checker extends ExtendedYakumanChecker{
|
|
7
7
|
protected yakuName: string = "純正九蓮宝燈";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
2
|
-
import { ChinitsuChecker } from '../normal/ChinitsuChecker';
|
|
3
|
-
|
|
1
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
2
|
+
import { ChinitsuChecker } from '../normal/ChinitsuChecker.js';
|
|
4
3
|
|
|
5
4
|
export class ChurenChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "九蓮宝燈";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
2
|
-
import { YakuContext } from '../YakuContext';
|
|
3
|
-
|
|
1
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
2
|
+
import { YakuContext } from '../YakuContext.js';
|
|
4
3
|
|
|
5
4
|
export class DaisushiChecker extends YakuCheckerBase{
|
|
6
5
|
protected yakuName: string = "大四喜";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
2
|
-
import { YakuContext } from '../YakuContext';
|
|
1
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
2
|
+
import { YakuContext } from '../YakuContext.js';
|
|
3
3
|
|
|
4
4
|
export abstract class ExtendedYakumanChecker extends YakuCheckerBase{
|
|
5
5
|
protected abstract baseChecker: YakuCheckerBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtendedYakumanChecker } from './ExtendedYakumanChecker';
|
|
2
|
-
import { YakuContext } from '../YakuContext';
|
|
3
|
-
import { KokushiChecker } from './KokushiChecker';
|
|
4
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
1
|
+
import { ExtendedYakumanChecker } from './ExtendedYakumanChecker.js';
|
|
2
|
+
import { YakuContext } from '../YakuContext.js';
|
|
3
|
+
import { KokushiChecker } from './KokushiChecker.js';
|
|
4
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
5
5
|
|
|
6
6
|
export class Kokushi13Checker extends ExtendedYakumanChecker{
|
|
7
7
|
protected yakuName: string = "国士無双13面待ち";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
2
|
-
import { BlockType } from '../../MahjongConsts';
|
|
1
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
2
|
+
import { BlockType } from '../../MahjongConsts.js';
|
|
3
3
|
|
|
4
4
|
export class KokushiChecker extends YakuCheckerBase{
|
|
5
5
|
protected yakuName: string = "国士無双";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { YakuCheckerBase } from '../YakuCheckerBase';
|
|
2
|
-
import { BlockType } from '../../MahjongConsts';
|
|
3
|
-
import { SuankoChecker } from './SuankoChecker';
|
|
4
|
-
import { YakuContext } from '../YakuContext';
|
|
5
|
-
|
|
1
|
+
import { YakuCheckerBase } from '../YakuCheckerBase.js';
|
|
2
|
+
import { BlockType } from '../../MahjongConsts.js';
|
|
3
|
+
import { SuankoChecker } from './SuankoChecker.js';
|
|
4
|
+
import { YakuContext } from '../YakuContext.js';
|
|
6
5
|
|
|
7
6
|
export class SuankoTankiChecker extends YakuCheckerBase{
|
|
8
7
|
protected yakuName: string = "四暗刻単騎";
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mahjong_engine",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "mahjong",
|
|
5
|
-
"homepage": "https://github.com/daicharn/IsTheOrderaMahjong#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/daicharn/IsTheOrderaMahjong/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/daicharn/IsTheOrderaMahjong.git"
|
|
12
|
-
},
|
|
13
|
-
"license": "ISC",
|
|
14
|
-
"author": "",
|
|
15
|
-
"main": "dist/index.js",
|
|
16
|
-
"types": "dist/index.d.ts",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"publish-public": "npx tsc && npm publish --access public",
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"coverage": "jest --coverage",
|
|
21
|
-
"build": "npx tsc
|
|
22
|
-
"copy-assets": "xcopy images dist\\images /E /I /Y"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/jest": "^30.0.0",
|
|
26
|
-
"jest": "^30.4.2",
|
|
27
|
-
"ts-jest": "^29.4.12"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mahjong_engine",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "mahjong",
|
|
5
|
+
"homepage": "https://github.com/daicharn/IsTheOrderaMahjong#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/daicharn/IsTheOrderaMahjong/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/daicharn/IsTheOrderaMahjong.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"author": "",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"publish-public": "npx tsc && npm publish --access public",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"coverage": "jest --coverage",
|
|
21
|
+
"build": "npx tsc -p tsconfig.build.json",
|
|
22
|
+
"copy-assets": "xcopy images dist\\images /E /I /Y"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/jest": "^30.0.0",
|
|
26
|
+
"jest": "^30.4.2",
|
|
27
|
+
"ts-jest": "^29.4.12"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
|
|
7
|
-
"types": ["jest"],
|
|
8
|
-
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"declarationMap": true,
|
|
12
|
-
"outDir": "dist",
|
|
13
|
-
"rootDir": "
|
|
14
|
-
"strict": true,
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
"isolatedModules": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
|
|
19
|
-
"esModuleInterop": true
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
"include": [
|
|
23
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "esnext",
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
|
|
7
|
+
"types": ["jest"],
|
|
8
|
+
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"outDir": "dist",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"isolatedModules": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
|
|
19
|
+
"esModuleInterop": true
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"include": [
|
|
23
|
+
"modules/**/*",
|
|
24
|
+
"tests/**/*"
|
|
25
|
+
]
|
|
26
|
+
}
|