Skip to content

Commit 497c442

Browse files
committed
Merge branch 'release/v1.3.3'
2 parents 018dc83 + 69555b6 commit 497c442

File tree

5 files changed

+189
-663
lines changed

5 files changed

+189
-663
lines changed

ChangeLog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### v1.3.3 / 2025-07-12
2+
3+
- シャンテン数計算の刻子抜き取りの無駄な処理を改善
4+
- パッケージを最新化
5+
- mocha 11.0.1 → 11.7.1
6+
- 脆弱性警告に対処
7+
- @babel/helpers 7.25.7 → 7.27.6
8+
- brace-expansion 1.1.11 → 1.1.12
9+
110
### v1.3.2 / 2024-12-29
211

312
- 伏せ牌の扱いを変更

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* @kobalab/majiang-core v1.3.2
2+
* @kobalab/majiang-core v1.3.3
33
*
44
* Copyright(C) 2021 Satoshi Kobayashi
55
* Released under the MIT license

lib/xiangting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function mianzi(bingpai, n = 1) {
5151

5252
if (bingpai[n] >= 3) {
5353
bingpai[n] -= 3;
54-
let r = mianzi(bingpai, n);
54+
let r = mianzi(bingpai, n+1);
5555
bingpai[n] += 3;
5656
r.a[0]++; r.b[0]++;
5757
if (r.a[2] < max.a[2]

0 commit comments

Comments
 (0)