puzzle

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Puzzle

type Puzzle[T any] struct {
	// contains filtered or unexported fields
}

func NewPuzzleSolver

func NewPuzzleSolver[T any](name string, normalizeInput func(string) T, part1 func(T) (string, error), part2 func(T) (string, error)) Puzzle[T]

func (Puzzle[T]) NormalizeInput

func (p Puzzle[T]) NormalizeInput(input string) T

func (Puzzle[T]) SolvePart

func (p Puzzle[T]) SolvePart(part int, input string) string

type PuzzleSolution

type PuzzleSolution[T any] struct {
	Part1 string
	Part2 string

	Error error
}

Jump to

Keyboard shortcuts

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