Skip to content

Commit

Permalink
优化李宁玉、老汉AI
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Sep 2, 2024
1 parent 8e13b1f commit ef95339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/MessageCardValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fun Player.calculateMessageCardValue(
}
if (Black in colors && inFrontOfWhom.skills.any { it is YiXin } && inFrontOfWhom.messageCards.count(Black) == 2) {
// 李宁玉【遗信】
var liNingYuValue = Int.MIN_VALUE
var liNingYuValue = -1
var myValue = 0
for (handCard in inFrontOfWhom.cards) {
for (p in game!!.players) {
Expand All @@ -289,7 +289,7 @@ fun Player.calculateMessageCardValue(
if (Black in colors && inFrontOfWhom.skills.any { it is RuGui } && inFrontOfWhom.messageCards.count(Black) == 2) {
// 老汉【如归】
if (whoseTurn !== inFrontOfWhom && whoseTurn.alive) {
var laoHanValue = Int.MIN_VALUE
var laoHanValue = -1
var myValue = 0
for (mCard in inFrontOfWhom.messageCards + TmpCard(colors)) {
val v = inFrontOfWhom.calculateMessageCardValue(whoseTurn, whoseTurn, mCard)
Expand Down

0 comments on commit ef95339

Please sign in to comment.