
public class Appli {
	public static void pause(long millis) {
		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			assert(false);
		}
	}
	
	public static void main(String[] args) {
		final int DUREE = 100;
		final long PAUSE = 100;
		Terrain t = new Terrain(10, 10);
		t.ajoute(new Elément('a', 2, 2, -1, 1));
		t.ajoute(new Elément('b', 5, 7, 1, -1));
		for (int i = 0; i < DUREE; ++i) {
			t.simule(1);
			System.out.println(t.toString());
			pause(PAUSE);
		}
	}
}
