Commits

INADA Naoki  committed d22741b

真ん中らへんを避ける

  • Participants
  • Parent commits 6e15083

Comments (0)

Files changed (1)

File src/net/javachallenge/players/Methane1Player.java

 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
+import java.util.HashSet;
 import java.util.List;
 import java.util.TreeMap;
 import java.util.TreeSet;
     public TrianglePoint selectVein(Game game) {
         int gas_ratio = 2;
         int metal_ratio = 3;
+        TrianglePoint center = Make.point(1, 0);
 
         if (firstVein != null) {
             switch (firstVein.getMaterial()) {
             }
             int score = 0;
 
+            score += center.getDistance(v.getLocation());
             score += v.getNumberOfRobots() * 8;
             score += v.getInitialRobotProductivity() * 40;
             switch (v.getMaterial()) {