修正可吃牌为空的情况下, 机器人依然觉得可以吃牌的bug

This commit is contained in:
zhl 2021-03-19 19:00:35 +08:00
parent ffe4d17057
commit c6ed918d5b

View File

@ -209,7 +209,10 @@ let assistantUtil = {
cardPoints.sort((a, b) => a - b)
let eatPairs = seekPairWithSpecial(pointMap, eatCard)
let eatSecs = seekSeq(pointMap, cardPoints, eatCard)
let eatSecs: Card[] = []
if (eatCard) {
eatSecs = seekSeq(pointMap, cardPoints, eatCard)
}
const selfEat = normalPairs.length > 0 || normalSecs.length > 0
const otherEat = eatPairs.length > 0 || eatSecs.length > 0
return {