1.1 --- a/src/main/java/ru/alphatech/icfpc/game/Run.java Sat Jun 18 11:39:59 2011 +0400
1.2 +++ b/src/main/java/ru/alphatech/icfpc/game/Run.java Sat Jun 18 12:18:39 2011 +0400
1.3 @@ -5,10 +5,42 @@
1.4 ***********************************************/
1.5 package ru.alphatech.icfpc.game;
1.6
1.7 +import java.io.BufferedReader;
1.8 +import java.io.IOException;
1.9 +import java.io.InputStreamReader;
1.10 +
1.11 public class Run
1.12 {
1.13 - public static void main(String[] args)
1.14 + private static Player proponent = new Player();
1.15 +
1.16 + private static Player opponent = new Player();
1.17 +
1.18 + private static void readOpponent() throws IOException
1.19 + {
1.20 + BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
1.21 +
1.22 + breader.readLine();
1.23 + breader.readLine();
1.24 + breader.readLine();
1.25 + }
1.26 +
1.27 + private static void writeMove()
1.28 + {
1.29 + System.out.println(1);
1.30 + System.out.println("I");
1.31 + System.out.println(0);
1.32 + }
1.33 +
1.34 + public static void main(String[] args) throws IOException
1.35 {
1.36 String playerNum = args[0];
1.37 +
1.38 + if("1".equals(playerNum))
1.39 + {
1.40 + readOpponent();
1.41 + }
1.42 +
1.43 + writeMove();
1.44 + readOpponent();
1.45 }
1.46 }