Documentation ¶
Index ¶
- func CopyMap(m map[string]int) map[string]int
- func Ingest(name string) ([]byte, error)
- func ParseMatrix(b []byte) ([][]int, error)
- func PrettyPrintBools(matr [][]bool)
- func PrettyPrintMatrix(ints [][]int)
- func PrettyPrintStrings(strings [][]string)
- func Solve(p *Puzzle, solvers ...Solver)
- func SplitLines(b ...[]byte) ([][]string, error)
- type Data
- type Puzzle
- type Solver
- type XY
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMatrix ¶
ParseMatrix parses a input bytes in to a matrix of ints.
func PrettyPrintBools ¶
func PrettyPrintBools(matr [][]bool)
func PrettyPrintMatrix ¶
func PrettyPrintMatrix(ints [][]int)
func PrettyPrintStrings ¶
func PrettyPrintStrings(strings [][]string)
func SplitLines ¶
SplitLines returns a line-by-line string slice of the input []byte(s).
Types ¶
type Data ¶
type Data []byte
func FromStrings ¶
func (Data) AsIntMatrix ¶
ParseMatrix parses a input bytes in to a matrix of ints.
func (Data) AsStringMatrix ¶
Click to show internal directories.
Click to hide internal directories.