diff -r 0f4c762f56f7 -r 9555608af847 src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java --- a/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Sun Jun 19 17:30:18 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Sun Jun 19 17:32:15 2011 +0400 @@ -121,64 +121,6 @@ return list; } - protected ArrayList BcombineForFunctWith3ParamsInRegister(ICard function, Slot processingSlot){ - ArrayList retArray = new ArrayList(); - - if(!(function instanceof Attack || function instanceof Help)){ - throw new ICFPCException(); - } - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new Put(), processingSlot)); - retArray.add(new Batch(OperationType.SLOT_TO_CARD, function, processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Get(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Zero(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Get(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Succ(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Zero(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Get(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Succ(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Succ(), processingSlot)); - - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot)); - retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot)); - - retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Zero(), processingSlot)); - - return retArray; - } - public abstract ArrayList getBatches(); public static void main(String[] args)