-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.java
More file actions
26 lines (23 loc) · 760 Bytes
/
Player.java
File metadata and controls
26 lines (23 loc) · 760 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
// import the API.
// See xxx for the javadocs.
import bc.*;
import java.lang.Thread;
// You can use other files in this directory, and in subdirectories.
public class Player {
public static void main(String[] args) {
// Connect to the manager, starting the game
GameController gc = new GameController();
Overseer overseer = new Overseer(gc);
while (true) {
try{
overseer.takeTurn();
System.gc();
} catch(Exception e) {
System.out.println("***ERROR AHHHHHHHHHHHHHHHHHHHHHHHHH***");
e.printStackTrace(System.out);
gc.nextTurn();
}
// try{Thread.sleep(25);}catch(Exception e){}
}
}
}