worked on riddler
This commit is contained in:
@@ -107,9 +107,9 @@ class CommandWords {
|
||||
public static String replaceSynonym(String word) {
|
||||
try {
|
||||
String words = m_synonyms.get(word);
|
||||
if(words == null)
|
||||
if(words == null) {
|
||||
throw new Exception();
|
||||
else
|
||||
}else
|
||||
return words;
|
||||
} catch(Exception e) {
|
||||
return word;
|
||||
|
||||
@@ -361,7 +361,8 @@ class Game {
|
||||
}
|
||||
break;
|
||||
case "talk":
|
||||
|
||||
System.out.println("Salad");
|
||||
break;
|
||||
case "take":
|
||||
boolean hasAll = false;
|
||||
for(String a : command.getOtherWords()) {
|
||||
|
||||
Reference in New Issue
Block a user