# HG changeset patch # User akhmetovlz # Date 1308489714 -14400 # Node ID 7292b7aea7e3940324c79eb8a975f56b7178d287 # Parent f247a56bde48ca95662e54a00d1c9cd49ec929f9 (no commit message) 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(); diff -r f247a56bde48 -r 7292b7aea7e3 src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java --- a/src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java Sun Jun 19 17:13:33 2011 +0400 +++ b/src/main/java/ru/alphatech/icfpc/policy/ZombiePolicy.java Sun Jun 19 17:21:54 2011 +0400 @@ -9,7 +9,6 @@ @Override public ArrayList getBatches() { - // TODO Auto-generated method stub return null; }