mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[mad ai] removed dynamic aggression calculation for now. doesn't work correctly
This commit is contained in:
parent
6d7b5a403d
commit
fa1e064b6b
2 changed files with 2 additions and 6 deletions
|
@ -994,7 +994,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
|||
}
|
||||
|
||||
int aggressionRate = 5;
|
||||
aggressionRate = getAggressionRate(oppScore, ourScore, outNumber, score, doAttack, turnsUntilDeathByUnblockable, doUnblockableAttack, aggressionRate);
|
||||
//aggressionRate = getAggressionRate(oppScore, ourScore, outNumber, score, doAttack, turnsUntilDeathByUnblockable, doUnblockableAttack, aggressionRate);
|
||||
System.out.println("AI aggression = " + String.valueOf(aggressionRate));
|
||||
|
||||
|
||||
|
@ -1019,7 +1019,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
|||
|
||||
boolean shouldAttack = shouldAttack(game, attackingPlayer.getId(), defenderId, attacker, possibleBlockers, aggressionRate);
|
||||
|
||||
if (shouldAttack && (totalFirstStrikeBlockPower < attacker.getToughness().getValue() || (aggressionRate == 5)) ) {
|
||||
if (aggressionRate == 5 || shouldAttack && (totalFirstStrikeBlockPower < attacker.getToughness().getValue()) ) {
|
||||
finalAttackers.add(attacker);
|
||||
}
|
||||
}
|
||||
|
@ -1048,10 +1048,6 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
|||
return false;
|
||||
}
|
||||
|
||||
if (aggressionRate == 5) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (Permanent defender : blockers) {
|
||||
if (defender.canBlock(attacker.getId(), game)) {
|
||||
numberOfPossibleBlockers += 1;
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue