1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/strategy/OtherStrategy.java Sun Jun 19 18:42:07 2011 +0400
1.3 @@ -0,0 +1,28 @@
1.4 +package ru.alphatech.icfpc.game.strategy;
1.5 +
1.6 +import java.io.PrintStream;
1.7 +import java.util.LinkedList;
1.8 +import java.util.List;
1.9 +import java.util.Queue;
1.10 +
1.11 +import ru.alphatech.icfpc.game.Batch;
1.12 +import ru.alphatech.icfpc.game.Player;
1.13 +
1.14 +public class OtherStrategy implements IStrategy {
1.15 +
1.16 + private static Queue<Batch> batches = new LinkedList<Batch>();
1.17 +
1.18 + public void clearBatcher(){
1.19 + batches.removeAll(batches);
1.20 + }
1.21 +
1.22 + public void addBatcher(List<Batch> batches){
1.23 + this.batches.addAll(batches);
1.24 + }
1.25 +
1.26 + @Override
1.27 + public Batch move(Player proponent, Player opponent) {
1.28 + return batches.poll();
1.29 + }
1.30 +
1.31 +}