diff --git a/README.md b/README.md index 1243b2aa1ecb03bd730527dd2cbbf37c5e288461..f064779e7b336e241b14c371abd73f81df399d2d 100644 --- a/README.md +++ b/README.md @@ -288,16 +288,16 @@ Hangman h = Hangman.withSecretWord("mystere"); String currentWord = h.currentWord(); // currentWord = "_______"; h = h.tryWith('h'); int attempts = h.attempts(); // attempts = 1 -int failedAttempts = h.failedAttepts(); // attempts = 1 +int failedAttempts = h.failedAttempts(); // attempts = 1 currentWord = h.currentWord(); // currentWord = "_______"; -h.printGallowsIfError(); // affiche la potence uniquement si le dernier essai est mauvais +h.printGallowIfError(); // affiche la potence uniquement si le dernier essai est mauvais h = h.tryWith('s'); attempts = h.attempts(); // attempts = 2 -failedAttempts = h.failedAttepts(); // attempts = 1 +failedAttempts = h.failedAttempts(); // attempts = 1 currentWord = h.currentWord(); // currentWord = "____e_e"; -h.printGallowsIfError(); -h.printGallows(); // affiche la potence même si aucune erreur +h.printGallowIfError(); +h.printGallow(); // affiche la potence même si aucune erreur // Utilisation finale while ( !h.isFinished() ) {