src/main/java/ru/alphatech/icfpc/game/Run.java
changeset 102 cc814352ab43
parent 96 8c40512777a1
child 103 bb440d1c3ea4
equal deleted inserted replaced
98:19dba9e387ce 102:cc814352ab43
    29 import ru.alphatech.icfpc.game.strategy.IStrategy;
    29 import ru.alphatech.icfpc.game.strategy.IStrategy;
    30 import ru.alphatech.icfpc.game.strategy.SimplyStrategy;
    30 import ru.alphatech.icfpc.game.strategy.SimplyStrategy;
    31 
    31 
    32 public class Run
    32 public class Run
    33 {
    33 {
       
    34 	private static int callcount = 0;
       
    35 
    34 	private static boolean automodeapply = false;
    36 	private static boolean automodeapply = false;
    35 
    37 
    36 	private static boolean endgame = false;
    38 	private static boolean endgame = false;
    37 	
    39 	
    38 	private static Player proponent = new Player();
    40 	private static Player proponent = new Player();
   132 		Batch batch = strategy.move(proponent, opponent);
   134 		Batch batch = strategy.move(proponent, opponent);
   133 		System.out.print(batch);
   135 		System.out.print(batch);
   134 		proponent.applyBatch(batch);
   136 		proponent.applyBatch(batch);
   135     }
   137     }
   136 	
   138 	
       
   139 	public static void resetCallCount()
       
   140 	{
       
   141 		callcount = 0;
       
   142 	}
       
   143 	
       
   144 	public static int incCallCount()
       
   145 	{
       
   146 		callcount++;
       
   147 		
       
   148 		return callcount;
       
   149 	}
       
   150 	
   137 	public static boolean getAutoMode()
   151 	public static boolean getAutoMode()
   138 	{
   152 	{
   139 		return automodeapply;
   153 		return automodeapply;
   140 	}
   154 	}
   141 	
   155