Compare commits

..

2 Commits

Author SHA1 Message Date
by 87db6c4e75 Merge branch 'develop' of https://git.pogorockgames.com/mango-games/server/game into develop
# Conflicts:
#	gamerule/tienlen/cardAi.go
2025-02-12 16:55:04 +08:00
by d687c12101 优化机器人出牌逻辑 2025-02-12 16:54:10 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -1024,7 +1024,7 @@ func GetPressCards(cards, lastCards []int32, data *tienlenApi.PredictRequest, po
//如果是机器人出的牌 判断出不出2
if lastIsRobot {
//如果上家剩余牌大于2手
if lastHandCardnum > 1 && Value(lastCards[0]) == 2 && len(outCards) == 1 && handCardnum > 2 {
if lastHandCardnum > 1 && Value(lastCards[0]) == 12 && len(outCards) == 1 && handCardnum > 2 {
//随机概率80
if rand.Int31n(100)+1 <= 80 {
outCards = []int32{}
@ -1218,7 +1218,7 @@ func GetPressCards(cards, lastCards []int32, data *tienlenApi.PredictRequest, po
//如果是机器人出的牌 判断出不出2
if lastIsRobot {
//如果上家剩余牌大于2手
if lastHandCardnum > 1 && Value(lastCards[0]) == 2 && len(outCards) == 2 && handCardnum > 2 {
if lastHandCardnum > 1 && Value(lastCards[0]) == 12 && len(outCards) == 2 && handCardnum > 2 {
//随机概率80
if rand.Int31n(100)+1 <= 80 {
outCards = []int32{}