1 /***********************************************
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ
4 * Time: 18.06.2011 11:37:46
5 ***********************************************/
6 package ru.alphatech.icfpc.game;
8 import java.io.BufferedReader;
10 import java.io.FileWriter;
11 import java.io.IOException;
12 import java.io.InputStreamReader;
13 import java.io.PrintWriter;
14 import java.util.ArrayList;
15 import java.util.LinkedList;
16 import java.util.List;
20 private static boolean endgame = false;
22 private static Player proponent = new Player();
24 private static Player opponent = new Player();
26 private LinkedList<Batch> batches = new LinkedList<Batch>();
28 public void clearBatcher(){
29 batches.removeAll(batches);
32 public void addBatcher(List<Batch> batches){
33 this.batches.addAll(this.batches);
36 private static void readOpponent() throws IOException
38 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
40 String l1 = breader.readLine();
41 String l2 = breader.readLine();
42 String l3 = breader.readLine();
44 if(l1 == null || l2 == null || l3 == null)
50 private static void writeMove()
52 System.out.print(1 + "\n");
53 System.out.print("I" + "\n");
54 System.out.print(0 + "\n");
57 public static void main(String[] args) throws IOException
59 String playerNum = args[0];
61 if("1".equals(playerNum))