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 |
4 import ru.alphatech.icfpc.cards.I; |
|
5 import ru.alphatech.icfpc.game.Batch; |
5 import ru.alphatech.icfpc.game.Player; |
6 import ru.alphatech.icfpc.game.Player; |
6 |
7 |
7 /** |
8 /** |
8 * @author indvdum |
9 * @author indvdum |
9 * 19.06.2011 13:36:26 |
10 * 19.06.2011 13:36:26 |
10 * |
11 * |
11 */ |
12 */ |
12 public class SimplyStrategy implements IStrategy { |
13 public class SimplyStrategy implements IStrategy { |
13 |
14 |
14 @Override |
15 @Override |
15 public void moving(Player proponent, Player opponent, PrintStream out) { |
16 public Batch move(Player proponent, Player opponent) { |
16 out.print(1 + "\n"); |
17 Batch batch = new Batch(CARD_TO_SLOT, new I(), opponent.getSlot(0)); |
17 out.print("I" + "\n"); |
18 return batch; |
18 out.print(0 + "\n"); |
|
19 } |
19 } |
20 |
20 |
21 } |
21 } |