Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
Dictionary find valid works in an array of tiles
func NewDictionary ¶
func NewDictionary(logger *log.Logger, wordList io.Reader) *Dictionary
NewDictionary returns a dictionary with the words contained in the provided wordList
func (*Dictionary) FindWords ¶
func (d *Dictionary) FindWords(tt []tile.Tile) [][]tile.Tile
FindWords given an array of tiles, returns and array of tile arrays that are valid words
func (*Dictionary) WordCount ¶
func (d *Dictionary) WordCount() int
WordCount returns the number of words in the dictionary.
Click to show internal directories.
Click to hide internal directories.