diff -r 0f4c762f56f7 -r 9555608af847 src/main/java/ru/alphatech/icfpc/game/strategy/OtherStrategy.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/ru/alphatech/icfpc/game/strategy/OtherStrategy.java Sun Jun 19 17:32:15 2011 +0400 @@ -0,0 +1,28 @@ +package ru.alphatech.icfpc.game.strategy; + +import java.io.PrintStream; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +import ru.alphatech.icfpc.game.Batch; +import ru.alphatech.icfpc.game.Player; + +public class OtherStrategy implements IStrategy { + + private static Queue batches = new LinkedList(); + + public void clearBatcher(){ + batches.removeAll(batches); + } + + public void addBatcher(List batches){ + this.batches.addAll(batches); + } + + @Override + public void moving(Player proponent, Player opponent, PrintStream out) { + out.print(batches.poll()); + } + +}