-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobotPlayer.java
More file actions
39 lines (36 loc) · 863 Bytes
/
RobotPlayer.java
File metadata and controls
39 lines (36 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package team022;
//now with 500% more Adam
import battlecode.common.*;
import java.util.Random;
public class RobotPlayer {
/**
* Default Run method, handles directing execution to run instructions based on robottype
**/
@SuppressWarnings("unused")
public static void run(RobotController rc) {
BaseRobot myself;
switch(rc.getType()){
case ARCHON:
myself = new Archon(rc);
break;
case SOLDIER:
myself = new Soldier(rc);
break;
case GUARD:
myself = new Guard(rc);
break;
case SCOUT:
myself = new Scout(rc);
break;
case TURRET:
myself = new Turret(rc);
break;
case TTM:
myself = new TTM(rc);
break;
default:
return;
}
myself.run();
}
}