Skip to content

Commit

Permalink
优化机器人跟牌逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
mailgyc committed Mar 1, 2020
1 parent d3bef16 commit 38d0811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doudizhu/apps/game/components/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def auto_shot(self):
else:
ally = self.room.players[self.room.last_shot_seat].landlord == 0
left_pokers = len(self.room.players[self.room.last_shot_seat].hand_pokers)
if ally and left_pokers <= 4:
if ally and left_pokers <= 4 and len(self.hand_pokers) - len(self.room.last_shot_poker) > 4:
pokers = []
else:
pokers = rule.find_best_follow(self.hand_pokers, self.room.last_shot_poker, ally)
Expand Down

0 comments on commit 38d0811

Please sign in to comment.