src/main/java/ru/alphatech/icfpc/game/Run.java
changeset 63 7b60d53f6933
parent 55 26d05bc45f1d
child 78 7eacf1e21213
child 80 fcdce54b2f25
     1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Run.java	Sun Jun 19 14:29:07 2011 +0400
     1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Run.java	Sun Jun 19 14:29:45 2011 +0400
     1.3 @@ -11,6 +11,9 @@
     1.4  import java.util.LinkedList;
     1.5  import java.util.List;
     1.6  
     1.7 +import ru.alphatech.icfpc.game.strategy.IStrategy;
     1.8 +import ru.alphatech.icfpc.game.strategy.SimplyStrategy;
     1.9 +
    1.10  public class Run
    1.11  {
    1.12  	private static boolean endgame = false;
    1.13 @@ -30,6 +33,8 @@
    1.14  		registers[3] = 3;
    1.15  	}
    1.16  	
    1.17 +	private static IStrategy strategy = new SimplyStrategy();
    1.18 +	
    1.19  	public static Slot getRegisterByIndex(int registerIdex){
    1.20  		return proponent.getSlot( registers[registerIdex] );
    1.21  	}
    1.22 @@ -80,9 +85,7 @@
    1.23  	
    1.24  	private static void writeMove()
    1.25      {
    1.26 -		System.out.print(1 + "\n");
    1.27 -		System.out.print("I" + "\n");
    1.28 -		System.out.print(0 + "\n");
    1.29 +		strategy.moving(proponent, opponent, System.out);
    1.30      }
    1.31  	
    1.32  	public static void main(String[] args) throws IOException