/**
* Un programme permettant de tester le fonctionnement d'un dé.
*/
public class Prog1 {
public static void main(String []argv) {
De dé = new De();
System.out.println(dé.jet());
System.out.println(dé.jet());
Joueur j1 = new Joueur("Toto",dé);
System.out.println("Il s'appelle "+j1.getNom());
System.out.println("Il s'appelle "+j1.getNom());
for (int i=0; i<10; i++)
System.out.println(j1.lanceLeDé());
Joueur j2 = new Joueur("Machin",new De());
System.out.println(j2.lanceLeDé());
}
}