Class DictionaryManager

java.lang.Object
Model.gameClasses.DictionaryManager

public class DictionaryManager extends Object
  • Constructor Details

    • DictionaryManager

      public DictionaryManager()
      the DictionaryManager constructor creates a HashMap.
  • Method Details

    • get

      public static DictionaryManager get()
      a Signelton pattern
      Returns:
      the dictionary manager
    • query

      public boolean query(String... args)
      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

      public boolean challenge(String... args)
      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