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