清一色修改

master
fy 2026-01-05 20:01:10 +08:00
parent b6230c2c92
commit 268cb2db9c
1 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ public class ChangShaSuanFaTest {
if (hasBigSuit) {
logInfo("执行清一色策略,尝试优化花色分布");
// 调用清一色特定出牌策略
int outcard = selectCardToDiscardForAllSameSuit(pinghuhandCards, chowGroup, pengCard);
int outcard = selectCardToDiscardForAllSameSuit(handCards, chowGroup, pengCard);
if (outcard != -1) {
return String.valueOf(outcard);
}
@ -2332,7 +2332,7 @@ public class ChangShaSuanFaTest {
String str = integer.toString();
if (!str.isEmpty()) {
int firstDigit = Character.getNumericValue(str.charAt(0));
if (mainSuit.equals(firstDigit)) {
if (!mainSuit.equals(firstDigit)) {
return -1;
}
}