Implémentation de la méthode afficherHistorique()

This commit is contained in:
Vincent Guillet
2025-04-28 17:52:44 +02:00
parent 3c2dc776a8
commit ffb376fede

View File

@@ -10,4 +10,11 @@ public class JeuDevinette {
private int getRandomBetween(int min, int max) {
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]);
}
}
}