[mad ai] removed dynamic aggression calculation for now. doesn't work correctly

This commit is contained in:
magenoxx 2012-05-05 14:13:46 +04:00
parent 6d7b5a403d
commit fa1e064b6b
2 changed files with 2 additions and 6 deletions

View file

@ -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;