Skip to content

Commit

Permalink
优化新手局SP顾小梦给完所有手牌只剩下一张平衡的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Dec 11, 2024
1 parent 124c5e4 commit 56bc640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/RobotPlayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RobotPlayer : Player() {
}
if (!Config.IsGmEnable && game!!.players.count { it is HumanPlayer } == 1) {
val human = game!!.players.first { it is HumanPlayer }!!
if (isEnemy(human)) { // 对于低分的新人,敌方机器人可能不出牌
if (isEnemy(human) && !(cards.size == 1 && cards.first().type == Ping_Heng)) { // 对于低分的新人,敌方机器人可能不出牌
val info = Statistics.getPlayerInfo(human.playerName)
if (info != null) {
val score = info.score
Expand Down

0 comments on commit 56bc640

Please sign in to comment.