优化跑得快机器人出牌逻辑
parent
376332412b
commit
c9eb0078d9
|
|
@ -255,16 +255,10 @@ public class HuNanPaoDeKuai {
|
||||||
*/
|
*/
|
||||||
public String outCard(TaurusClient client) {
|
public String outCard(TaurusClient client) {
|
||||||
try {
|
try {
|
||||||
System.out.println("=== 开始执行outCard方法 ===");
|
|
||||||
System.out.println("当前seat: " + seat);
|
|
||||||
System.out.println("当前guangboseat: " + guangboseat);
|
|
||||||
System.out.println("当前手牌数量: " + paoDekuaiCardInhand.size());
|
|
||||||
System.out.println("当前card_list: " + card_list);
|
|
||||||
|
|
||||||
ITArray itArray = null;
|
ITArray itArray = null;
|
||||||
itArray = test_smart.intelligentPaoDeKuaiOutCard(this, paoDekuaiCardInhand, card_list, seatRemainHistory);
|
itArray = test_smart.intelligentPaoDeKuaiOutCard(this, paoDekuaiCardInhand, card_list, seatRemainHistory);
|
||||||
System.out.println("itArray-----" + itArray);
|
|
||||||
|
|
||||||
//无法跟牌且不是下家只剩一张牌的情况 则pass
|
//无法跟牌且不是下家只剩一张牌的情况 则pass
|
||||||
if (itArray == null && remain != 1) {
|
if (itArray == null && remain != 1) {
|
||||||
System.out.println("无法跟牌,选择pass");
|
System.out.println("无法跟牌,选择pass");
|
||||||
|
|
@ -378,7 +372,6 @@ public class HuNanPaoDeKuai {
|
||||||
|
|
||||||
// 修正长度字段
|
// 修正长度字段
|
||||||
if (reportedLen != actualLen) {
|
if (reportedLen != actualLen) {
|
||||||
System.out.println("[警告] 长度字段不匹配! 报告:" + reportedLen + ", 实际:" + actualLen);
|
|
||||||
card_list.putInt("len", actualLen);
|
card_list.putInt("len", actualLen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue