fy 2026-01-24 19:40:51 +08:00
parent 4fb08ca53f
commit 12692cbe34
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ public class ChangShaSuanFaTest {
if (!qys){
//检测同色牌有多少张
for (Map.Entry<String,List<Integer>> entry : cardst2.entrySet()) {
if (entry.getValue().size()<=2){
List<Integer> values = entry.getValue();
if (values.size() > 0 && values.size() <= 2){
//如果只有一张同色,那就打这一张
return entry.getValue().get(0).toString();
}