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.ArrayList;
12 import java.util.LinkedList;
13 import java.util.List;
17 private static boolean endgame = false;
19 private static Player proponent = new Player();
21 private static Player opponent = new Player();
23 private LinkedList<Batch> batches = new LinkedList<Batch>();
25 public void clearBatcher(){
26 batches.removeAll(batches);
29 public void addBatcher(List<Batch> batches){
30 this.batches.addAll(this.batches);
33 private static void readOpponent() throws IOException
35 BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
36 String turnCase = breader.readLine();
40 if("1".equals(turnCase))
42 card = breader.readLine();
43 slot = breader.readLine();
45 else if("2".equals(turnCase))
47 slot = breader.readLine();
48 card = breader.readLine();
55 if(turnCase == null || card == null || slot == null)
61 private static void writeMove()
63 System.out.print(1 + "\n");
64 System.out.print("I" + "\n");
65 System.out.print(0 + "\n");
68 public static void main(String[] args) throws IOException
70 String playerNum = args[0];
72 if("1".equals(playerNum))