Cheat code added

This commit is contained in:
blzimme000 2022-03-07 13:14:09 -06:00
parent c66446a336
commit 254a1b5190

View file

@ -30,7 +30,9 @@ public class Main{
while (fiveLetter){ while (fiveLetter){
System.out.println("Guess the five letter word!"); System.out.println("Guess the five letter word!");
guess = scan.nextLine(); guess = scan.nextLine();
if (guess.length() < 5) if (guess.equalsIgnoreCase("raspberriesarefun")){
System.out.println(answer);
} else if (guess.length() < 5)
System.out.println("Sorry, your word is not long enough!"); System.out.println("Sorry, your word is not long enough!");
else if (guess.length() > 5) else if (guess.length() > 5)
System.out.println("Sorry, your word is too long!"); System.out.println("Sorry, your word is too long!");