package futility;

import futility.Client;

public class Main {

    /**
     * Initialize client
     * 
     * Initialize one client for interaction with the soccer server. Call
     * multiple times with various arguments as needed to initialize the whole
     * team.
     * 
     * @param args Command-line arguments.
     */
    public static void main(String[] args) {
        Client client = new Client();
        client.start();
//        try {
//            RoboClient client = new RoboClient(teamName, host);
//            client.init();
//            client.startListening();
//            client.startWriting();          
//            //TODO be preparted to take stop commands from standard input
//
//        } catch (UnknownHostException e) {
//            e.printStackTrace();
//        } catch (SocketException e) {
//            e.printStackTrace();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
    }

}

@@ -945,16 +945,2520 @@
       %7D%0A
+//        NetClient cl;%0A//        String hostname = %22localhost%22;%0A//        String teamname = %22Futility%22;%0A//        int port = 6000;%0A//        boolean coach = false, goalie = false;%0A//%0A//        // Parse any command-line arguments; enforce proper format if they%0A//        //   appear.%0A//        for ( int i = 1; i %3C args.length; i++ )%0A//        %7B%0A//            try %7B%0A//                if ( args%5Bi%5D.compareTo(%22-h%22) == 0 )%0A//                %7B%0A//                    hostname = args%5Bi+1%5D;%0A//                %7D%0A//                else if ( args%5Bi%5D.compareTo(%22-p%22) == 0 )%0A//                %7B%0A//                    port = Integer.parseInt(args%5Bi+1%5D);%0A//                %7D%0A//                else if ( args%5Bi%5D.compareTo(%22-n%22) == 0 )%0A//                %7B%0A//                    teamname = args%5Bi+1%5D;%0A//                %7D%0A//                else if ( args%5Bi%5D.compareTo(%22-g%22) == 0 )%0A//                %7B%0A//                    goalie = true;%0A//                %7D%0A//                else if ( args%5Bi%5D.compareTo(%22-c%22) == 0 )%0A//                %7B%0A//                    coach = true;%0A//                    port = 6002;%0A//                %7D%0A//            %7D%0A//            catch ( Exception e )%0A//            %7B%0A//                System.out.println(%22Invalid command-line parameters.%22);%0A//                System.out.println(%22Accepted format is:%22);%0A//                System.out.println(%22futility %5B-c%5D %5B-n %3Cteam_name%3E%5D %5B-h %3Chost_name%3E%5D %5B-p %3Cport_#%3E%5D%22);%0A//                System.out.println(%22%5Ct-c :%22);%0A//                System.out.println(%22%5Ct%5CtOn-line coach mode. Sets port to 6002 unless specified.%22);%0A//                System.out.println(%22%5Ct-n %3Cteam_name%3E :%22);%0A//                System.out.println(%22%5Ct%5CtTeam name designation.%22);%0A//                System.out.println(%22%5Ct-h %3Chost_name%3E :%22);%0A//                System.out.println(%22%5Ct%5CtHost name or address of the server to connect to.%22);%0A//                System.out.println(%22%5Ct-p %3Cport_#%3E :%22);%0A//                System.out.println(%22%5Ct%5CtPort to connect to on the server.%22);%0A//            %7D%0A//        %7D%0A//%0A//        // Initialize the connection and the client.%0A//        try%0A//        %7B%0A//            if ( coach )%0A//                throw new Exception(%22Cannot instantiate coach client.%22);%0A//            else%0A//                cl = new PlayerClient(hostname, port, teamname,%0A//                        protocol_version, goalie);%0A//%0A//            cl.init();%0A//        %7D%0A//        catch ( Exception e )%0A//        %7B%0A//            System.err.println(e);%0A//            e.printStackTrace();%0A//        %7D%0A
     %7D%0A%0A%7D

Bring in some of Tom's code