Skip to content

Commit

Permalink
接情报AI优化
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Sep 11, 2024
1 parent e1fff55 commit d81e111
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/kotlin/RobotPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.fengsheng.protos.Common.color.Black
import com.fengsheng.protos.Common.direction
import com.fengsheng.protos.Common.direction.Left
import com.fengsheng.protos.Common.direction.Right
import com.fengsheng.protos.Common.role.*
import com.fengsheng.protos.Common.secret_task.*
import com.fengsheng.protos.endReceivePhaseTos
import com.fengsheng.protos.notifyDieGiveCardToc
Expand Down Expand Up @@ -149,12 +150,11 @@ class RobotPlayer : Player() {
if (myValue >= 0 || nextNextValue >= 0) {
if (myValue > myNextValue) return@run true // 自己比下家收益高就接
if (myValue == myNextValue && myValue >= 0) {
// 下家和自己是队友,且下家是张一挺,程小蝶,王响,白小年就不接
// 下家和自己是队友,且下家是张一挺,王响,白小年就不接
if (isPartner(nextPlayer) && (
nextPlayer.skills.any { it is QiangLing } ||
nextPlayer.skills.any { it is ZhiYin } ||
nextPlayer.skills.any { it is JieCheYunHuo } ||
nextPlayer.skills.any { it is ZhuanJiao })) {
nextPlayer.role == zhang_yi_ting ||
nextPlayer.role == huo_che_si_ji ||
nextPlayer.role == bai_xiao_nian)) {
return@run false
}
return@run true // 相等的情况下,收益不为负就接
Expand Down

0 comments on commit d81e111

Please sign in to comment.