diff -r f247a56bde48 -r 7292b7aea7e3 src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java --- a/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java Sun Jun 19 17:13:33 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java Sun Jun 19 17:21:54 2011 +0400 @@ -35,10 +35,11 @@ private int targetSlotIndex = -1; - public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target) { + public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target, int registerIndex) { this.type = type; this.processingSlotIndex = processingSlot; this.targetSlotIndex = target; + this.registerIndex = registerIndex; } public ICard getCard(){ @@ -73,7 +74,7 @@ public ArrayList getBatches() { ArrayList retArray = new ArrayList(); - retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(0), targetSlotIndex)); + retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(registerIndex), targetSlotIndex)); Slot processingSlot = Run.getProponent().getSlot(processingSlotIndex); IValue slotValue = processingSlot.getValue();