mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
AI, refactor: removed outdated and unused code like simple priority and combat implementation, simple combat damage calculator, etc (part of #13638, #13766)
This commit is contained in:
parent
64bfa21b0c
commit
135c594de1
8 changed files with 29 additions and 901 deletions
|
|
@ -112,8 +112,6 @@ public class ComputerPlayer7 extends ComputerPlayer6 {
|
|||
|
||||
protected void calculateActions(Game game) {
|
||||
if (!getNextAction(game)) {
|
||||
//logger.info("--- calculating possible actions for " + this.getName() + " on " + game.toString());
|
||||
Date startTime = new Date();
|
||||
currentScore = GameStateEvaluator2.evaluate(playerId, game).getTotalScore();
|
||||
Game sim = createSimulation(game);
|
||||
SimulationNode2.resetCount();
|
||||
|
|
@ -146,15 +144,6 @@ public class ComputerPlayer7 extends ComputerPlayer6 {
|
|||
} else {
|
||||
logger.info('[' + game.getPlayer(playerId).getName() + "][pre] Action: skip");
|
||||
}
|
||||
Date endTime = new Date();
|
||||
this.setLastThinkTime((endTime.getTime() - startTime.getTime()));
|
||||
|
||||
/*
|
||||
logger.warn("Last think time: " + this.getLastThinkTime()
|
||||
+ "; actions: " + actions.size()
|
||||
+ "; hand: " + this.getHand().size()
|
||||
+ "; permanents: " + game.getBattlefield().getAllPermanents().size());
|
||||
*/
|
||||
} else {
|
||||
logger.debug("Next Action exists!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue