1 /***********************************************
3 * بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِِ
4 * Time: 18.06.2011 11:37:46
5 ***********************************************/
6 package ru.alphatech.icfpc.game;
8 import java.io.BufferedReader;
9 import java.io.IOException;
10 import java.io.InputStreamReader;
11 import java.util.LinkedList;
12 import java.util.List;
16 private static boolean endgame = false;
18 private static Player proponent = new Player();
20 private static Player opponent = new Player();
22 private LinkedList<Batch> batches = new LinkedList<Batch>();
24 public void clearBatcher(){
25 batches.removeAll(batches);
28 public void addBatcher(List<Batch> batches){
29 this.batches.addAll(this.batches);
32 private static void readOpponent() throws IOException
34 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
35 String turnCase = breader.readLine();
39 if("1".equals(turnCase))
41 card = breader.readLine();
42 slot = breader.readLine();
44 else if("2".equals(turnCase))
46 slot = breader.readLine();
47 card = breader.readLine();
54 if(turnCase == null || card == null || slot == null)
60 private static void writeMove()
62 System.out.print(1 + "\n");
63 System.out.print("I" + "\n");
64 System.out.print(0 + "\n");
67 public static void main(String[] args) throws IOException
69 String playerNum = args[0];
71 if("1".equals(playerNum))