src/main/java/ru/alphatech/icfpc/game/Run.java
changeset 48 7e49c679fc70
parent 37 6e56ba8c71c3
child 55 26d05bc45f1d
equal deleted inserted replaced
47:6d7a99f8ec68 48:7e49c679fc70
    17 	
    17 	
    18 	private static Player proponent = new Player();
    18 	private static Player proponent = new Player();
    19 	
    19 	
    20 	private static Player opponent = new Player();
    20 	private static Player opponent = new Player();
    21 	
    21 	
    22 	private LinkedList<Batch> batches = new LinkedList<Batch>();
    22 	private static LinkedList<Batch> batches = new LinkedList<Batch>();
    23 	
    23 	
    24 	public void clearBatcher(){
    24 	private static int registers[] = new int[4];
       
    25 	
       
    26 	static {
       
    27 		registers[0] = 0;
       
    28 		registers[1] = 1;
       
    29 		registers[2] = 2;
       
    30 		registers[3] = 3;
       
    31 	}
       
    32 	
       
    33 	public static Slot getRegisterByIndex(int registerIdex){
       
    34 		return proponent.getSlot( registers[registerIdex] );
       
    35 	}
       
    36 	
       
    37 	public static void clearBatcher(){
    25 		batches.removeAll(batches);
    38 		batches.removeAll(batches);
    26 	}
    39 	}
    27 	
    40 	
    28 	public void addBatcher(List<Batch> batches){
    41 	public static void addBatcher(List<Batch> batches){
    29 		this.batches.addAll(this.batches);
    42 		batches.addAll(batches);
       
    43 	}
       
    44 	
       
    45 	public static Player getOpponent(){
       
    46 		return opponent;
       
    47 	}
       
    48 	
       
    49 	public static Player getProponent(){
       
    50 		return proponent;
    30 	}
    51 	}
    31 	
    52 	
    32 	private static void readOpponent() throws IOException
    53 	private static void readOpponent() throws IOException
    33 	{
    54 	{
    34 		BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
    55 		BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));