1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Run.java Sun Jun 19 11:51:08 2011 +0400
1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Run.java Sun Jun 19 11:53:33 2011 +0400
1.3 @@ -11,6 +11,9 @@
1.4 import java.io.IOException;
1.5 import java.io.InputStreamReader;
1.6 import java.io.PrintWriter;
1.7 +import java.util.ArrayList;
1.8 +import java.util.LinkedList;
1.9 +import java.util.List;
1.10
1.11 public class Run
1.12 {
1.13 @@ -20,6 +23,16 @@
1.14
1.15 private static Player opponent = new Player();
1.16
1.17 + private LinkedList<Batch> batches = new LinkedList<Batch>();
1.18 +
1.19 + public void clearBatcher(){
1.20 + batches.removeAll(batches);
1.21 + }
1.22 +
1.23 + public void addBatcher(List<Batch> batches){
1.24 + this.batches.addAll(this.batches);
1.25 + }
1.26 +
1.27 private static void readOpponent() throws IOException
1.28 {
1.29 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));