From cdc427d4be895e11ba571e8a64fc1e03990f1a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Sat, 20 Nov 2021 22:04:04 +0100 Subject: [PATCH] master --- bin/lab6/HangMan.class | Bin 2564 -> 2585 bytes bin/lab6/WordManager.class | Bin 4815 -> 4998 bytes src/lab6/HangMan.java | 2 +- src/lab6/WordManager.java | 7 +++++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/lab6/HangMan.class b/bin/lab6/HangMan.class index 985a4e485df1d796cf0bff7234cb10a091f8e9f8..da6a604a96654eec7ed92c6692bc4c4a87e69109 100644 GIT binary patch delta 245 zcmXAi%}N4c6o#Mgn^9+`!AuMnQZ3rVC_!OJAVu~MNsF#PNFopnzBcZM(*AW;U51QB zwCDo5rVx*|Jn!?K=M8i3Iq!G;{R32phF)9G7ufTuv9GXOZF3tBbgWl5x%cT#!}R5~ zxoI^z^`KYDXyt=e6E^M$m^OH3e)1z3SA6BomRuZG&{Vg zmf_=Pg><0?bNB%3#hJAT$e7EJRO@N-Ja2ptQD-DZ?+DV z$e=;z$E`(z4NW{-9FjbrA#teN=XOk~DBY>zE-c|ArK{5J#r-nwV~96P3V4Dw`DGq`j*17+ z!XK1Uq=&#|EazLKLBhjW!S_in`zkylV>R*dBho-Y#TqWjHP&@9p5_g5D%;3gow3lDz;-XMHuL2Bk4{RyRe%<(sZ)b@giHM z^s=6dp?6Ee( zAbLl|yRZ{c6^(;WK`)NVc>lk%nF>ytU*)UU{h^?WV;wE_3?`k$*D}81+Z4C(4Zh_k zl#}dBzH2~=`+EfpKdLx|(+LuONW^IdwKy2`g(n0&nF{Kk;Q&na1wj6WFCX`9ZA z)m&!pXjCgK5#VMFqa+H=Y6JrPf#JDjJ;w>!zxsI7p6h|@Qd|S>oB=lP;s-m4h z77V2ILWo8JdK*Fe%aDi5Nr@|vL{?WUIR=r(_zi~#aT0M`kdN7rVBrVjods20@R#H` zLXNm78cK57C^D8i-o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T>>x8LP=J4=#iok7Or`tzs#t|WGM;ALPp_BpT@&69Rvm94+; zEmD8ro+RG!y_+gQBjMH%?BKwb3R*s3EvecWh)`>~QW6hAS9(k}ya>Y&4Sg^lLDW#q zH4= MAX_STEPS) { party = false; // System.out.println("Sorry, you have lost ;( "); - Dialogs.displayMessage("Sorry, you have lost ;("); + word.lost("Sorry, you have lost ;("); } diff --git a/src/lab6/WordManager.java b/src/lab6/WordManager.java index 1044691..2f7d24f 100644 --- a/src/lab6/WordManager.java +++ b/src/lab6/WordManager.java @@ -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){ s = Normalizer.normalize(s, Normalizer.Form.NFD); s = s.replaceAll("[\\p{InCombiningDiacriticalMarks}]", "");