From b424885984060cac202dc581504d5670349394da Mon Sep 17 00:00:00 2001 From: vilasopher Date: Tue, 12 Jan 2016 06:40:16 -0500 Subject: [PATCH] Update RobotPlayer.java --- RobotPlayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RobotPlayer.java b/RobotPlayer.java index 14737c7..d8855c3 100644 --- a/RobotPlayer.java +++ b/RobotPlayer.java @@ -305,8 +305,8 @@ public Triple getScoutInitType(){ public Triple getScoutHerdingType(){ MapLocation enemyArchonLocation = RESOURCE_FUNCTIONS.mostRecentEnemyArchonLocation(); System.out.println("enemyArchonLocation =" + enemyArchonLocation); - int xPosition = enemyArchonLocation.x << 2; - int yPosition = enemyArchonLocation.y; + int xPosition = (enemyArchonLocation.x + 16000) << 2; + int yPosition = (enemyArchonLocation.y + 16000); return new Triple(1,xPosition,yPosition); } } @@ -359,7 +359,7 @@ public void run(){ if((x.ints.first & 3) == 0){ runAsArchonSearcher(); }else if((x.ints.first & 3) == 1){ - mostRecentArchonLocation = new MapLocation(x.ints.first >> 2,x.ints.second); + mostRecentArchonLocation = new MapLocation((x.ints.first >>> 2) - 16000,x.ints.second - 16000); System.out.println("Running as zombie herder to archon at (" + mostRecentArchonLocation.x + "," + mostRecentArchonLocation.y + ")"); runAsZombieHerder(); }else if((x.ints.first & 3) == 2){