1 package ru.alphatech.icfpc.policy;
3 import java.util.ArrayList;
5 import ru.alphatech.icfpc.game.AbstractPolicy;
6 import ru.alphatech.icfpc.game.Batch;
7 import ru.alphatech.icfpc.game.Run;
8 import ru.alphatech.icfpc.game.Slot;
11 * Задать значение слота
15 public class SetSlotValuePolicy extends AbstractPolicy{
17 int targetSlotIndex = -1;
20 public SetSlotValuePolicy(int targetSlot, int value) {
21 this.targetSlotIndex = targetSlot;
26 public ArrayList<Batch> getBatches() {
27 Slot targetSlot = Run.getProponent().getSlot(targetSlotIndex);
28 return numberIntoSlotField(targetSlot, value);