检查能否出牌的时候, 如果是一张牌, 直接返回true

This commit is contained in:
zhl 2020-12-02 19:31:00 +08:00
parent ebe958fde1
commit 9b151143e3

View File

@ -89,6 +89,8 @@ let gameUtil = {
checkDiscard(cardsLst: Card[]) {
if (cardsLst.length == 0 || cardsLst.length == 2) {
return false
} else if (cardsLst.length == 1) {
return true;
}
let numSet: number[] = [];
cardsLst.forEach(function (value) {