public JoueurClientCmd(String command) throws IOException {
        ProcessBuilder pb = new ProcessBuilder(command);
        File file = new File(command);
        File parent = file.getParentFile();
        if(parent.exists())
            pb.directory(parent);
        process = pb.start();
        
        fromProcess = new BufferedReader(new InputStreamReader(process.getInputStream()));
        new Thread(new Runnable(){
            @Override
            public void run() {
                BufferedReader err = new BufferedReader(new InputStreamReader(process.getErrorStream()));
                try{
                    String ligne;
                    do{
                        ligne=err.readLine();
                        if(debug)
                            System.err.println(" STDERR: " + ligne);
                    }while(ligne!=null);
                    process.getErrorStream().close();
                }catch(Exception e){e.printStackTrace();}
            }
        }).start();
        
        toProcess = new PrintWriter(process.getOutputStream());
        
        System.out.println("Initialisation du joueur artificiel");
        String ligne;
        do{
            ligne = fromProcess.readLine();
            System.out.println(" STDOUT: " + ligne);
        }while(!ligne.equalsIgnoreCase("READY"));
        
        System.out.println("Joueur artificiel initialisé.");
    }