equal
deleted
inserted
replaced
9 import java.io.File; |
9 import java.io.File; |
10 import java.io.FileWriter; |
10 import java.io.FileWriter; |
11 import java.io.IOException; |
11 import java.io.IOException; |
12 import java.io.InputStreamReader; |
12 import java.io.InputStreamReader; |
13 import java.io.PrintWriter; |
13 import java.io.PrintWriter; |
|
14 import java.util.ArrayList; |
|
15 import java.util.LinkedList; |
|
16 import java.util.List; |
14 |
17 |
15 public class Run |
18 public class Run |
16 { |
19 { |
17 private static boolean endgame = false; |
20 private static boolean endgame = false; |
18 |
21 |
19 private static Player proponent = new Player(); |
22 private static Player proponent = new Player(); |
20 |
23 |
21 private static Player opponent = new Player(); |
24 private static Player opponent = new Player(); |
|
25 |
|
26 private LinkedList<Batch> batches = new LinkedList<Batch>(); |
|
27 |
|
28 public void clearBatcher(){ |
|
29 batches.removeAll(batches); |
|
30 } |
|
31 |
|
32 public void addBatcher(List<Batch> batches){ |
|
33 this.batches.addAll(this.batches); |
|
34 } |
22 |
35 |
23 private static void readOpponent() throws IOException |
36 private static void readOpponent() throws IOException |
24 { |
37 { |
25 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in)); |
38 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in)); |
26 |
39 |