From 9b151143e316fd341ee0da43ffed8e64c3ae406e Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 2 Dec 2020 19:31:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=83=BD=E5=90=A6=E5=87=BA?= =?UTF-8?q?=E7=89=8C=E7=9A=84=E6=97=B6=E5=80=99,=20=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=98=AF=E4=B8=80=E5=BC=A0=E7=89=8C,=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=BF=94=E5=9B=9Etrue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/game.util.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/game.util.ts b/src/utils/game.util.ts index b2fac43..0c9fd81 100644 --- a/src/utils/game.util.ts +++ b/src/utils/game.util.ts @@ -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) {