1 package ru.alphatech.icfpc.game.strategy;
3 import java.util.LinkedList;
5 import ru.alphatech.icfpc.cards.I;
6 import ru.alphatech.icfpc.game.Batch;
7 import ru.alphatech.icfpc.game.ICFPCException;
8 import ru.alphatech.icfpc.game.Player;
9 import ru.alphatech.icfpc.game.Run;
10 import ru.alphatech.icfpc.game.Batch.OperationType;
11 import ru.alphatech.icfpc.policy.AttackHelpPolicy;
12 import ru.alphatech.icfpc.policy.AttackHelpPolicy.TYPE;
14 public class HelpStrategy implements IStrategy {
16 LinkedList<Batch> batches = new LinkedList<Batch>();
18 public HelpStrategy() {
20 batches.addAll(new AttackHelpPolicy(TYPE.HELP, 0, 0, 1, 16).getBatches());
27 public Batch move(Player proponent, Player opponent) {
28 Batch batch = batches.poll();
33 throw new ICFPCException();
35 return new Batch(OperationType.CARD_TO_SLOT, new I(), Run.getProponent().getSlot(6));