src/main/java/ru/alphatech/icfpc/game/strategy/SimplyStrategy.java
changeset 101 4bb458c3548e
parent 90 774e7ce00b5f
child 108 4e9f892684f2
equal deleted inserted replaced
100:875773ff406b 101:4bb458c3548e
     1 package ru.alphatech.icfpc.game.strategy;
     1 package ru.alphatech.icfpc.game.strategy;
     2 
     2 
     3 import static ru.alphatech.icfpc.game.Batch.OperationType.CARD_TO_SLOT;
     3 import java.util.LinkedList;
     4 import ru.alphatech.icfpc.cards.I;
     4 
     5 import ru.alphatech.icfpc.game.Batch;
     5 import ru.alphatech.icfpc.game.Batch;
     6 import ru.alphatech.icfpc.game.Player;
     6 import ru.alphatech.icfpc.game.Player;
       
     7 import ru.alphatech.icfpc.policy.AttackHelpPolicy;
       
     8 import ru.alphatech.icfpc.policy.AttackHelpPolicy.TYPE;
     7 
     9 
     8 /**
    10 /**
     9  * @author indvdum
    11  * @author indvdum
    10  * 19.06.2011 13:36:26
    12  * 19.06.2011 13:36:26
    11  *
    13  *
    12  */
    14  */
    13 public class SimplyStrategy implements IStrategy {
    15 public class SimplyStrategy implements IStrategy {
    14 
    16 
       
    17 	LinkedList<Batch> batches = new LinkedList<Batch>();
       
    18 	
       
    19 	public SimplyStrategy() {
       
    20 		for(int i=0; i<100; ++i){
       
    21 			batches.addAll(new AttackHelpPolicy(TYPE.HELP, 10, 5, 5, 9999, true).getBatches());
       
    22 		}
       
    23 	}
       
    24 	
    15 	@Override
    25 	@Override
    16 	public Batch move(Player proponent, Player opponent) {
    26 	public Batch move(Player proponent, Player opponent) {
    17 		Batch batch = new Batch(CARD_TO_SLOT, new I(), opponent.getSlot(0));
    27 		return batches.poll();//new Batch(OperationType.CARD_TO_SLOT, new I(), proponent.getSlot(0));//batches.poll();
    18 		return batch;
       
    19 	}
    28 	}
    20 
    29 
    21 }
    30 }