1.1 --- a/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java Sun Jun 19 17:13:33 2011 +0400
1.2 +++ b/src/main/java/ru/alphatech/icfpc/policy/OneArgumentCardsPolicy.java Sun Jun 19 17:21:54 2011 +0400
1.3 @@ -35,10 +35,11 @@
1.4 private int targetSlotIndex = -1;
1.5
1.6
1.7 - public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target) {
1.8 + public OneArgumentCardsPolicy(TYPE type, int processingSlot, int target, int registerIndex) {
1.9 this.type = type;
1.10 this.processingSlotIndex = processingSlot;
1.11 this.targetSlotIndex = target;
1.12 + this.registerIndex = registerIndex;
1.13 }
1.14
1.15 public ICard getCard(){
1.16 @@ -73,7 +74,7 @@
1.17 public ArrayList<Batch> getBatches() {
1.18 ArrayList<Batch> retArray = new ArrayList<Batch>();
1.19
1.20 - retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(0), targetSlotIndex));
1.21 + retArray.addAll(numberIntoSlotField(Run.getRegisterByIndex(registerIndex), targetSlotIndex));
1.22
1.23 Slot processingSlot = Run.getProponent().getSlot(processingSlotIndex);
1.24 IValue slotValue = processingSlot.getValue();