dictionary

package
v0.0.0-...-984e2b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL