AI出连队BUG修改
This commit is contained in:
parent
87db6c4e75
commit
c37407ac44
|
@ -639,13 +639,13 @@ func GetPressCards(cards, lastCards []int32, data *tienlenApi.PredictRequest, po
|
|||
logger.Logger.Trace("压牌 调控输赢 isWin = ", isWin)
|
||||
outCards := []int32{}
|
||||
//压牌测试代码
|
||||
// cards = []int32{6, 19, 2, 28, 41, 43, 12, 25}
|
||||
// lastCards = []int32{14, 27}
|
||||
// pos = 0
|
||||
// data.Cards_left_2 = []int32{45, 32}
|
||||
// data.Cards_left_3 = nil
|
||||
// data.Cards_left_1 = nil
|
||||
// data.Last_pos = 2
|
||||
/* cards = []int32{17, 43, 18, 31}
|
||||
lastCards = []int32{2, 28, 3, 16}
|
||||
pos = 0
|
||||
data.Cards_left_2 = []int32{46, 47, 51}
|
||||
data.Cards_left_3 = nil
|
||||
data.Cards_left_1 = nil
|
||||
data.Last_pos = 2*/
|
||||
|
||||
lastPos := data.Last_pos //上家出牌人的位置
|
||||
logger.Logger.Tracef(" 上家出牌人的位置%d,出的牌:%v\n", lastPos, lastCards)
|
||||
|
@ -1362,7 +1362,7 @@ func GetPressCards(cards, lastCards []int32, data *tienlenApi.PredictRequest, po
|
|||
}
|
||||
if isYuLe {
|
||||
//找炸弹
|
||||
if len(outCards) == 0 && (len(cardsTypeMap[Four_Bomb]) > 0 && lastHandCardnum <= 2 && lastCardNum <= 3) || handCardnum <= 2 {
|
||||
if len(outCards) == 0 && (len(cardsTypeMap[Four_Bomb]) > 0 && (lastHandCardnum <= 2 && lastCardNum <= 3 || handCardnum <= 2)) {
|
||||
minKey := findMinKey(cardsTypeMap[Four_Bomb])
|
||||
outCards = cardsTypeMap[Four_Bomb][minKey]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue