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:
parent
f7535505dd
commit
b3b51f9f1e
1 changed files with 3 additions and 0 deletions
|
@ -564,6 +564,9 @@ public class ComputerPlayer6 extends ComputerPlayer implements Player {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPlayer.getId().equals(playerId)) {
|
if (currentPlayer.getId().equals(playerId)) {
|
||||||
|
if (action instanceof PassAbility) {
|
||||||
|
val = val -15; // passivity penalty
|
||||||
|
}
|
||||||
if (val > alpha) {
|
if (val > alpha) {
|
||||||
alpha = val;
|
alpha = val;
|
||||||
bestNode = newNode;
|
bestNode = newNode;
|
||||||
|
|
Loading…
Add table
Reference in a new issue