修正检查能否出顺子的bug

This commit is contained in:
zhl 2021-03-19 17:46:52 +08:00
parent 15534cdd70
commit 2576e0183e

View File

@ -90,7 +90,7 @@ function seekSeq(pointMap: Map<number, Card[]>, points: number[], special?: Card
}
// 将获取到的点数sequence转换为Card数组
let result: Card[] = []
if (tmp.length > minLength) {
if (tmp.length >= minLength) {
for (let point of tmp) {
if (!!special && point === special.number) {
result.push(special)