Package mage.player.ai

Examples of mage.player.ai.PermanentEvaluator


      if (opponent.hasLost() || player.hasWon())
        return Integer.MAX_VALUE;
    }
    int value = player.getLife();
    value -= opponent.getLife();
    PermanentEvaluator evaluator = new PermanentEvaluator();
    for (Permanent permanent: game.getBattlefield().getAllActivePermanents(player.getId())) {
      value += evaluator.evaluate(permanent, game);
    }
    for (Permanent permanent: game.getBattlefield().getAllActivePermanents(player.getId())) {
      value -= evaluator.evaluate(permanent, game);
    }
    value += player.getHand().size();
    value -= opponent.getHand().size();
    return value;
  }
View Full Code Here


                return Integer.MAX_VALUE;
            }
        }
        int value = player.getLife();
        value -= opponent.getLife();
        PermanentEvaluator evaluator = new PermanentEvaluator();
        for (Permanent permanent: game.getBattlefield().getAllActivePermanents(player.getId())) {
            value += evaluator.evaluate(permanent, game);
        }
        for (Permanent permanent: game.getBattlefield().getAllActivePermanents(player.getId())) {
            value -= evaluator.evaluate(permanent, game);
        }
        value += player.getHand().size();
        value -= opponent.getHand().size();
        return value;
    }
View Full Code Here

TOP

Related Classes of mage.player.ai.PermanentEvaluator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.