public class LetterBoxed
extends java.lang.Object
Constructor and Description |
---|
LetterBoxed(java.lang.String[][] inputLetterGrid) |
LetterBoxed(java.lang.String urlPath,
java.lang.String[][] inputLetterGrid) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getPangrams()
Returns a list that contains words that use up every letter (pangrams) of the
Letter
Boxed grid.
|
java.util.ArrayList<java.lang.String> |
getValidLetterBoxedWords()
Returns a list of words that satisfy the cross-rule for Letter Boxed.
|
java.util.ArrayList<java.lang.String> |
getWordsStartingWithAndContaining(java.util.ArrayList<java.lang.String> list,
java.lang.String startLetter,
java.lang.String otherLetters)
Returns a list of valid words for LetterBoxed when given the desired starting
letter and other unused letters.
|
public LetterBoxed(java.lang.String[][] inputLetterGrid)
public LetterBoxed(java.lang.String urlPath, java.lang.String[][] inputLetterGrid)
public java.util.ArrayList<java.lang.String> getWordsStartingWithAndContaining(java.util.ArrayList<java.lang.String> list, java.lang.String startLetter, java.lang.String otherLetters)
Enter an empty list for the second input String
if you want a
list of words when given only a starting letter.
list
- the word list.startLetter
- the starting letter.otherLetters
- the other unused letters in the Letter Boxed grid.public java.util.ArrayList<java.lang.String> getPangrams()
public java.util.ArrayList<java.lang.String> getValidLetterBoxedWords()
The output list is sorted from shortest words to longest words.