puzzle

package
v0.0.0-...-b9bf6c3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package puzzle contains general formatting etc for any of the puzzles

Index

Constants

This section is empty.

Variables

View Source
var (
	BoldRed   = ansi.ColorFunc("red+bh")
	BoldGreen = ansi.ColorFunc("green+bh")
)

Functions

func InitialSolutionFile

func InitialSolutionFile(puzzle *Puzzle) (string, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) Get

func (client *Client) Get(year, day int) (*Puzzle, error)

type Puzzle

type Puzzle struct {
	Name      string
	Readme    string
	TestInput string
	Input     string
}

type Solution

type Solution struct {
	Name  string
	Parts []func() error
}

func NewSolution

func NewSolution(name string, parts ...func() error) *Solution

func (*Solution) Run

func (s *Solution) Run()

Jump to

Keyboard shortcuts

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