Documentation ¶
Overview ¶
Package day08_2019 contains the solver for Advent of Code - Day 8: Space Image Format
Index ¶
Constants ¶
View Source
const ( WIDTH = 25 HEIGHT = 6 )
Variables ¶
This section is empty.
Functions ¶
func AsciiArt ¶
AsciiArt converts the rune pixel of an image (usually '0','1' or '2') into a character more suitable to be rendered as ascii art.
func MergePixels ¶
MergePixels merges the pixels of a layer into a single one
func OccurrencesInLayer ¶
OccurrencesInLayer counts how many of a given pixels are in a layer/image
Types ¶
type Solver ¶
type Solver struct {
Layers []string
}
Solver implements the puzzle.Solver interface for the puzzle for day 8
func (*Solver) ProcessInput ¶
ProcessInput processes the input. Required to implement Solver.
Click to show internal directories.
Click to hide internal directories.