Exemple #1
0
 /**
  * Sets the hangman word's length.
  *
  * @param wordLength The word length
  */
 private void setLength(int wordLength) {
   if (!dict.hasLength(wordLength))
     throw new IllegalArgumentException("Game dict has no words of " + "length " + length);
   length = wordLength;
 }