Implémentation de la méthode afficherHistorique()
This commit is contained in:
@@ -10,4 +10,11 @@ public class JeuDevinette {
|
|||||||
private int getRandomBetween(int min, int max) {
|
private int getRandomBetween(int min, int max) {
|
||||||
return (int)(Math.random() * (max - min + 1)) + min;
|
return (int)(Math.random() * (max - min + 1)) + min;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void afficherHistorique() {
|
||||||
|
System.out.println("\nHistorique des tentatives :");
|
||||||
|
for (int i = 0; i < nombreDeTentatives; i++) {
|
||||||
|
System.out.println("Tentative " + (i + 1) + " : " + tentatives[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user