src/main/java/ru/alphatech/icfpc/game/strategy/OtherStrategy.java
changeset 98 19dba9e387ce
parent 90 774e7ce00b5f
equal deleted inserted replaced
97:89f13f209302 98:19dba9e387ce
       
     1 package ru.alphatech.icfpc.game.strategy;
       
     2 
       
     3 import java.io.PrintStream;
       
     4 import java.util.LinkedList;
       
     5 import java.util.List;
       
     6 import java.util.Queue;
       
     7 
       
     8 import ru.alphatech.icfpc.game.Batch;
       
     9 import ru.alphatech.icfpc.game.Player;
       
    10 
       
    11 public class OtherStrategy implements IStrategy {
       
    12 	
       
    13 	private static Queue<Batch> batches = new LinkedList<Batch>();
       
    14 	
       
    15 	public void clearBatcher(){
       
    16 		batches.removeAll(batches);
       
    17 	}
       
    18 	
       
    19 	public void addBatcher(List<Batch> batches){
       
    20 		this.batches.addAll(batches);
       
    21 	}
       
    22 	
       
    23 	@Override
       
    24 	public Batch move(Player proponent, Player opponent) {
       
    25 		return batches.poll();
       
    26 	}
       
    27 
       
    28 }