equal
deleted
inserted
replaced
4 * Time: 18.06.2011 11:37:46 |
4 * Time: 18.06.2011 11:37:46 |
5 ***********************************************/ |
5 ***********************************************/ |
6 package ru.alphatech.icfpc.game; |
6 package ru.alphatech.icfpc.game; |
7 |
7 |
8 import java.io.BufferedReader; |
8 import java.io.BufferedReader; |
9 import java.io.File; |
|
10 import java.io.IOException; |
9 import java.io.IOException; |
11 import java.io.InputStreamReader; |
10 import java.io.InputStreamReader; |
12 |
11 |
13 import ru.alphatech.icfpc.cards.Attack; |
12 import ru.alphatech.icfpc.cards.Attack; |
14 import ru.alphatech.icfpc.cards.Copy; |
13 import ru.alphatech.icfpc.cards.Copy; |
26 import ru.alphatech.icfpc.cards.Succ; |
25 import ru.alphatech.icfpc.cards.Succ; |
27 import ru.alphatech.icfpc.cards.Zero; |
26 import ru.alphatech.icfpc.cards.Zero; |
28 import ru.alphatech.icfpc.cards.Zombie; |
27 import ru.alphatech.icfpc.cards.Zombie; |
29 import ru.alphatech.icfpc.game.Batch.OperationType; |
28 import ru.alphatech.icfpc.game.Batch.OperationType; |
30 import ru.alphatech.icfpc.game.strategy.IStrategy; |
29 import ru.alphatech.icfpc.game.strategy.IStrategy; |
31 import ru.alphatech.icfpc.game.strategy.SimplyStrategy; |
30 import ru.alphatech.icfpc.game.strategy.LenarStrategy; |
32 import ru.alphatech.icfpc.game.strategy.YetAnotherStrategy; |
|
33 |
31 |
34 public class Run |
32 public class Run |
35 { |
33 { |
36 private static int callcount = 0; |
34 private static int callcount = 0; |
37 |
35 |
52 registers[1] = 1; |
50 registers[1] = 1; |
53 registers[2] = 2; |
51 registers[2] = 2; |
54 registers[3] = 3; |
52 registers[3] = 3; |
55 } |
53 } |
56 |
54 |
57 private static IStrategy strategy = new YetAnotherStrategy(); |
55 private static IStrategy strategy = new LenarStrategy(); |
58 |
56 |
59 public static Slot getRegisterByIndex(int registerIndex){ |
57 public static Slot getRegisterByIndex(int registerIndex){ |
60 return proponent.getSlot( registers[registerIndex] ); |
58 return proponent.getSlot( registers[registerIndex] ); |
61 } |
59 } |
62 |
60 |