master
This commit is contained in:
parent
bbec964da6
commit
cdc427d4be
Binary file not shown.
Binary file not shown.
@ -22,7 +22,7 @@ public class HangMan {
|
|||||||
if (current_step >= MAX_STEPS) {
|
if (current_step >= MAX_STEPS) {
|
||||||
party = false;
|
party = false;
|
||||||
// System.out.println("Sorry, you have lost ;( ");
|
// System.out.println("Sorry, you have lost ;( ");
|
||||||
Dialogs.displayMessage("Sorry, you have lost ;(");
|
word.lost("Sorry, you have lost ;(");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +45,13 @@ public class WordManager {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lost(String msg){
|
||||||
|
String s = msg;
|
||||||
|
s += "\n \n The good word was: ";
|
||||||
|
s += secretWord;
|
||||||
|
Dialogs.displayMessage(s);
|
||||||
|
}
|
||||||
|
|
||||||
public static String stripAccents(String s){
|
public static String stripAccents(String s){
|
||||||
s = Normalizer.normalize(s, Normalizer.Form.NFD);
|
s = Normalizer.normalize(s, Normalizer.Form.NFD);
|
||||||
s = s.replaceAll("[\\p{InCombiningDiacriticalMarks}]", "");
|
s = s.replaceAll("[\\p{InCombiningDiacriticalMarks}]", "");
|
||||||
|
Reference in New Issue
Block a user