Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions RobotPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ public void run() {
// receive a message containing enemy archon ID
if (s.getTeam() == ourTeam) {
FancyMessage f = FancyMessage.getFromRecievedSignal(s);
System.out.println(f.type);
if(f.type == 2){
System.out.println("66");
int xPos = f.ints.first;
int yPos = f.ints.second;
enemyArchonLocation = new MapLocation(xPos, yPos);
Expand Down Expand Up @@ -208,15 +206,12 @@ public void run() {
}
for(RobotInfo robot: robots) {
if((robot.team == opponentTeam) && robot.location.distanceSquaredTo(startLocation) < 25) {
System.out.println("pikachu");
target = robot.location;
break;
}
}
if(target != null){
System.out.println("target found");
RESOURCE_FUNCTIONS.BUG(target);
System.out.println("Still alive");
}
}
}
Expand Down Expand Up @@ -312,7 +307,6 @@ public void run(){
try{
MapLocation enemyArchonLocation = RESOURCE_FUNCTIONS.scanArchonLocation();
if(enemyArchonLocation != null){
System.out.println("XXXXXXXXXXXXXXX");
int xPos = enemyArchonLocation.x;
int yPos = enemyArchonLocation.y;
FancyMessage.sendMessage(2, xPos, yPos, 1000);
Expand Down