src/main/java/ru/alphatech/icfpc/game/AbstractPolicy.java
changeset 118 8fca5b204fb3
parent 115 21f9fa7770cc
child 120 f8c080bbb572
equal deleted inserted replaced
117:b7782c34c147 118:8fca5b204fb3
   128 	 * @param processingSlot - слот где происходит рассчёт
   128 	 * @param processingSlot - слот где происходит рассчёт
   129 	 * @return
   129 	 * @return
   130 	 */
   130 	 */
   131 	protected ArrayList<Batch> correctRegister(int registerIndex, Slot processingSlot){
   131 	protected ArrayList<Batch> correctRegister(int registerIndex, Slot processingSlot){
   132 		ArrayList<Batch> retArray = new ArrayList<Batch>();
   132 		ArrayList<Batch> retArray = new ArrayList<Batch>();
   133 		for(int i=0; i<Run.getRegisterSlotNum(0); ++i) 
   133 		for(int i=0; i<Run.getRegisterSlotNum(registerIndex); ++i) 
   134 		{
   134 		{
   135 			retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot));
   135 			retArray.add(new Batch(OperationType.CARD_TO_SLOT, new K(), processingSlot));
   136 			retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot));
   136 			retArray.add(new Batch(OperationType.CARD_TO_SLOT, new S(), processingSlot));
   137 			
   137 			
   138 			retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Succ(), processingSlot));
   138 			retArray.add(new Batch(OperationType.SLOT_TO_CARD, new Succ(), processingSlot));