package zh2015.vorosOktober;

import java.util.ArrayList;

public class Main {
	
	static ArrayList<Ship> US_ships = new ArrayList<>(); // US -> United States
	static ArrayList<Ship> SU_ships = new ArrayList<>(); // SU -> Soviet Union

	public static boolean success = false;

	public static void main(String[] args) {
		for (int i = 0; i < 10; i++) {
			Ship NewShip = new Ship();
			SU_ships.add(NewShip);
			(new Thread (NewShip)).start();
		}
		
		for (int i = 0; i < 5; i++) {
			Ship NewShip = new Ship();
			US_ships.add(NewShip);
			(new Thread (NewShip)).start();
		}
		
		VorosOktober vo = new VorosOktober();
		(new Thread(vo)).start();
		
		while (!success){
			System.out.println(vo.position.toString());
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
