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

View File

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

View File

@@ -107,9 +107,9 @@ class CommandWords {
public static String replaceSynonym(String word) { public static String replaceSynonym(String word) {
try { try {
String words = m_synonyms.get(word); String words = m_synonyms.get(word);
if(words == null) if(words == null) {
throw new Exception(); throw new Exception();
else }else
return words; return words;
} catch(Exception e) { } catch(Exception e) {
return word; return word;

View File

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