public int Jouer(De De1, De De2) { for (int i = 1; i < 11; i++) { int result1, result2; result1 = De1.Lancer(); result2 = De2.Lancer(); Console.WriteLine("Dé 1 : "+result1+" et Dé 2 : "+result2); int result; result = result1 + result2; if (result == 7) { this.Score += 10; } } return this.Score; }
private Jeu2Des() { De1 = new De(); De2 = new De(); Classement = new Classement(); }