检查能否出牌的时候, 如果是一张牌, 直接返回true
This commit is contained in:
parent
ebe958fde1
commit
9b151143e3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user