equal
deleted
inserted
replaced
1 package ru.alphatech.icfpc.game.strategy; |
1 package ru.alphatech.icfpc.game.strategy; |
2 |
2 |
3 import java.io.PrintStream; |
3 import static ru.alphatech.icfpc.game.Batch.OperationType.CARD_TO_SLOT; |
4 |
|
5 import ru.alphatech.icfpc.cards.I; |
4 import ru.alphatech.icfpc.cards.I; |
6 import ru.alphatech.icfpc.game.Batch; |
5 import ru.alphatech.icfpc.game.Batch; |
7 import ru.alphatech.icfpc.game.Player; |
6 import ru.alphatech.icfpc.game.Player; |
8 import static ru.alphatech.icfpc.game.Batch.OperationType.*; |
|
9 |
7 |
10 /** |
8 /** |
11 * @author indvdum |
9 * @author indvdum |
12 * 19.06.2011 13:36:26 |
10 * 19.06.2011 13:36:26 |
13 * |
11 * |
14 */ |
12 */ |
15 public class SimplyStrategy implements IStrategy { |
13 public class SimplyStrategy implements IStrategy { |
16 |
14 |
17 @Override |
15 @Override |
18 public void moving(Player proponent, Player opponent, PrintStream out) { |
16 public Batch move(Player proponent, Player opponent) { |
19 Batch batch = new Batch(CARD_TO_SLOT, new I(), opponent.getSlot(0)); |
17 Batch batch = new Batch(CARD_TO_SLOT, new I(), opponent.getSlot(0)); |
20 out.print(batch); |
18 return batch; |
21 } |
19 } |
22 |
20 |
23 } |
21 } |