Documentation ¶
Index ¶
- Constants
- type Grid
- type Tile
- type Waffle
- func (w *Waffle) AllLetters() map[rune]int
- func (w *Waffle) Get(row, col int) (rune, rune)
- func (w *Waffle) Letters(c rune) map[rune]int
- func (w *Waffle) Print()
- func (w *Waffle) Serialize() string
- func (w *Waffle) Set(row, col int, l, c rune)
- func (w *Waffle) Size() int
- func (w *Waffle) Tiles() []Tile
- func (w *Waffle) TilesInCol(row, col int, matchColor rune) map[rune]int
- func (w *Waffle) TilesInRow(row, col int, matchColor rune) map[rune]int
Constants ¶
View Source
const ( Empty = ' ' Green = 'g' Yellow = 'y' White = 'w' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Waffle ¶
type Waffle struct {
// contains filtered or unexported fields
}
Waffle implements a waffle game board
func (*Waffle) AllLetters ¶
AllLetters returns all the letters and their count
func (*Waffle) Print ¶
func (w *Waffle) Print()
Print prints the waffle game board state to the console
func (*Waffle) TilesInCol ¶
TilesInCol returns the set of letters of a given color (and their count) adjacent to the given coord
Click to show internal directories.
Click to hide internal directories.