diff -r 40ad0dd24185 -r 5955cb5e5ef3 src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java --- a/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Sun Jun 19 16:52:01 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java Sun Jun 19 16:52:20 2011 +0400 @@ -91,63 +91,5 @@ return retArray; } - 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(); }