java.lang.Object
Model.gameClasses.DictionaryManager
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DictionaryManager
public DictionaryManager()the DictionaryManager constructor creates a HashMap.
-
-
Method Details
-
get
a Signelton pattern- Returns:
- the dictionary manager
-
query
- Parameters:
args- array of strings that represent book names, and the last string is the word to search- Returns:
- if the word exists or not
-
challenge
- Parameters:
args- an array of book names when the last string is the word to challenge- Returns:
- if the word is valid or not
-
getSize
public int getSize()- Returns:
- how many dictionaries exist
-