From f9c8603d8cb7647c279e221b00954ff6648b93cc Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 15 Dec 2017 01:04:51 +0300 Subject: [PATCH] - fix nuclear, fix rotation --- core/src/MyStrategy.java | 2 +- core/src/NuclearStrike.java | 4 ++-- core/src/Runner.java | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/MyStrategy.java b/core/src/MyStrategy.java index ca651e3..5ba5463 100755 --- a/core/src/MyStrategy.java +++ b/core/src/MyStrategy.java @@ -1659,7 +1659,7 @@ private void actualMoveToPoint(VehicleGroupInfo myGroup, Point2D point, Move mov move.setAction(ActionType.ROTATE); move.setX(myAverage.getX()); move.setY(myAverage.getY()); - move.setAngle(myGroup.shrinkRotateToRight ? Math.PI : -Math.PI); + move.setAngle((myGroup.shrinkRotateToRight ? Math.PI : -Math.PI) * 0.2f); myGroup.shrinkRotateToRight = !myGroup.shrinkRotateToRight; } diff --git a/core/src/NuclearStrike.java b/core/src/NuclearStrike.java index bab0ecd..aa99492 100644 --- a/core/src/NuclearStrike.java +++ b/core/src/NuclearStrike.java @@ -3,7 +3,7 @@ import java.util.Comparator; public class NuclearStrike { - public static final int PREDICTION_TICK = 33; + public static final int PREDICTION_TICK = 33 / 3; public static final int KILL_BONUS = 45; public final VehicleWrapper myVehicle; public final VehicleWrapper target; @@ -88,7 +88,7 @@ public String toString() { sb.append(", myVehicleDidSurvive=").append(myVehicleDidSurvive); sb.append(", myStats=").append(myStats); sb.append(", enemyStats=").append(enemyStats); - sb.append(", ").append(canceled ? "CANCELED" : succeed ? "SUCCEED" : actualTs == 0 ? "NOT_FIRED_YET" : "FAILED"); + sb.append(", ").append(canceled ? "CANCELED" : succeed ? "SUCCEED" : actualTs == 0 ? "NOT_FIRED_YET" : "FAILED"); sb.append('}'); return sb.toString(); } diff --git a/core/src/Runner.java b/core/src/Runner.java index b26b909..1dfaefc 100755 --- a/core/src/Runner.java +++ b/core/src/Runner.java @@ -44,7 +44,8 @@ public static void main(String[] args) throws IOException { //runProc(null, true, "java", "-cp", "23.jar", "Runner"); //runProc(null, true, "java", "-cp", "23.2.jar", "Runner"); //runProc(null, true, "java", "-cp", "23.4.jar", "Runner"); - runProc(null, true, "java", "-cp", "23.5.jar", "Runner"); + //runProc(null, true, "java", "-cp", "23.5.jar", "Runner"); + runProc(null, true, "java", "-cp", "24.jar", "Runner"); } }).start(); new Runner(new String[]{"127.0.0.1", hasArgs ? "31001" : "31002", "0000000000000000"}).run();