1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-09 09:11:05 -09:00

* AI added little passivity penalty for passing turn to get AI more active.

This commit is contained in:
LevelX2 2014-10-03 12:07:59 +02:00
parent f7535505dd
commit b3b51f9f1e

View file

@ -564,6 +564,9 @@ public class ComputerPlayer6 extends ComputerPlayer implements Player {
}
if (currentPlayer.getId().equals(playerId)) {
if (action instanceof PassAbility) {
val = val -15; // passivity penalty
}
if (val > alpha) {
alpha = val;
bestNode = newNode;