worked on riddler

This commit is contained in:
Luca Carnegie
2019-05-29 19:47:53 -04:00
parent c633473df6
commit 87afdf44f4
4 changed files with 32 additions and 31 deletions

View File

@@ -1,31 +1,37 @@
suicide, die
grab, take
everything, all
raid, attack
destroy, attack
kill, attack
charge, attack
raid, attack
strike, attack
?, help
advice, help
aid, help
benefit, help
man, riddler
butler, riddler
helper, riddler
leave, quit
drive, go
move, go
scram, go
hightail, go
glance, look
glimpse, look
peek, look
gander, look
charge, attack
raid, attack
strike, attack
drown, die
expire, die
perish, die
bounce, jump
grab, take
suicide, die
dive, jump
fall, jump
rise, jump
free, unlock
quack, talk
chat, talk
speak, talk
jabber, talk
release, unlock
raid, attack
pick, unlock
bite, eat
chew, eat
devour, eat
@@ -36,10 +42,5 @@ inhale, eat
nibble, eat
swallow, eat
absorb, eat
advice, help
aid, help
benefit, help
scram, go
hightail, go
everything, all
drink, eat

View File

@@ -4,6 +4,15 @@ help, verb
jump, verb
read, verb
talk, verb
eat, verb
look, verb
take, verb
open, verb
unlock, verb
inventory, verb
die, verb
drop, verb
attack, verb
north, direction
south, direction
west, direction
@@ -16,10 +25,7 @@ up, direction
down, direction
d, direction
u, direction
eat, verb
candlestick, item
look, verb
take, verb
lockpick, item
key, item
crowbar, item
@@ -33,7 +39,6 @@ pen, item
book, item
socks, item
painting, item
inventory, verb
notebook, item
shaving cream, item
toothbrush, item
@@ -48,18 +53,12 @@ warm bread, item
clothes, item
sword, item
blanket, item
die, verb
butter, item
novel, item
mop, item
bucket, item
towels, item
open, verb
i, verb
unlock, verb
drop, verb
henrypellatt, enemy
attack, verb
clock, item
keyboard, item
lightbulb, item

View File

@@ -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;

View File

@@ -361,7 +361,8 @@ class Game {
}
break;
case "talk":
System.out.println("Salad");
break;
case "take":
boolean hasAll = false;
for(String a : command.getOtherWords()) {