public static void main(String[] args) {
		
		
//		String ip = JOptionPane.showInputDialog("ip:");
//		String name = JOptionPane.showInputDialog(":");
////		new Client(ip, playerName, tankName, tankSpeed, bulletSpeed, bulletDamage)
//		Client c =new Client(ip,name,"OZTANK",4,6,3);
//		Thread th = new Thread(c);
//		th.start();
		
		
		
		
		String name=null;
		String ip = JOptionPane.showInputDialog("ip:");
//		SERVER_PORT = Integer.parseInt(JOptionPane.showInputDialog("˿:"));
		if( ip!=null ){
			 name = JOptionPane.showInputDialog(":");
		}

//		new Client(ip, playerName, tankName, tankSpeed, bulletSpeed, bulletDamage)
		if( ip!=null && name!=null ){
			
		String str[] = name.split("/");
		if( str.length==5 ){
			Client c =new Client(ip,str[0],str[1],Integer.parseInt(str[2]),Integer.parseInt(str[3]),Integer.parseInt(str[4]));
			Thread th = new Thread(c);
			th.start();
		}
		else{
				Client c =new Client(ip,name,"",2,3,3);
				Thread th = new Thread(c);
				th.start();
			}
			
		}
		
		
//		
//		if( input!=null ){
//			String s[] = input.split("/");
//			System.out.println(s.length);
//			String ip,playerName;
//			
//			if( s.length==2 ){
//				ip = s[0];
//				playerName = s[1];
//				
//				Client c =new Client(ip,playerName);
//				Thread th = new Thread(c);
//				th.start();
//			}
//		}
		
//		Client c =new Client("127.0.0.1","LUXION");
//		Thread th = new Thread(c);
//		th.start();
		
	}