Commits

INADA Naoki committed df23432

調整

  • Participants
  • Parent commits 316d992

Comments (0)

Files changed (1)

src/net/javachallenge/players/Methane1Player.java

     private static class LargerRobotProducer implements Comparator<OwnVein> {
         @Override
         public int compare(OwnVein o1, OwnVein o2) {
-            return o2.vein.getCurrentRobotProductivity() - o1.vein.getCurrentRobotProductivity();
+            return o2.vein.getInitialRobotProductivity() - o1.vein.getInitialRobotProductivity();
         }
     }
 
     private static class MoreMaterialProducer implements Comparator<OwnVein> {
         @Override
         public int compare(OwnVein o1, OwnVein o2) {
-            int v1 = o1.vein.getCurrentMaterialProductivity();
-            int v2 = o2.vein.getCurrentMaterialProductivity();
+            int v1 = o1.vein.getInitialMaterialProductivity();
+            int v2 = o2.vein.getInitialMaterialProductivity();
             // TODO: 資源の種類に対して重み付け
             // TODO: vein の安全さに対して重み付け
             return v2 - v1;
                 }
 
                 // ターゲットの周辺の敵基地の強さを勘案する. 取ってすぐ取り返されるなら最初から取らない.
-                if (turn > 4) {
+                if (turn > 4 || dist > 6 || enemyVein.getOwnerId() == game.getNeutralPlayerId()) {
                     for (Vein v : game.getField().getVeinsOfOtherOwnersOrderedByDistance(enemyVein)) {
                         int r = v.getDistance(enemyVein);
                         if (r > 6)