package edu.miamioh.cse283.htw;

import java.net.*;

public class Client {
	// networking code
	//
	// connecting
	// handoff
	// send actions to server
	// receive messages from server

	public static void main(String[] args) {
		Client c = new Client();
		c.run(args);
	}

	/**
	 * plays the game
	 * 
	 * @param args
	 *            holds the IP address and port number for a
	 *            {@link CaveSystemServer}
	 */
	public void run(String[] args) {

	}

	/**
	 * connects to a given server
	 * 
	 * @param address
	 *            the address of the {@link Server}
	 * @param port
	 *            the port number of the {@link Server}
	 */
	public void connect(InetAddress address, int port) {

	}

	/**
	 * transfers this client to a new {@link Server}
	 * 
	 * @param address
	 *            the address of the {@link Server}
	 * @param port
	 *            the port number of the {@link Server}
	 */
	public void handoff(InetAddress address, int port) {

	}
}

@@ -471,24 +471,307 @@
 %5B%5D args) %7B%0D%0A
+%09%09try %7B%0D%0A%09%09%09connect(InetAddress.getByName(args%5B0%5D), Integer.parseInt(args%5B1%5D));%0D%0A%09%09%7D catch (NumberFormatException e) %7B%0D%0A%09%09%09System.err.println(%22Malformed port value%22);%0D%0A%09%09%09return;%0D%0A%09%09%7D catch (UnknownHostException e) %7B%0D%0A%09%09%09System.err.println(%22Invalid server address%22);%0D%0A%09%09%09return;%0D%0A%09%09%7D
 %0D%0A%09%7D%0D%0A%0D%0A%09/**

add code to Client.run