day6

package
v0.0.0-...-3c62cd9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s *scanner.Scanner, fn CmdFunc)

func ParseReader

func ParseReader(reader io.Reader, fn CmdFunc)

Types

type CmdFunc

type CmdFunc func(cmd string, flag bool, from, to Coord)

type Coord

type Coord struct {
	X, Y int
}

type Lights

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

func (*Lights) Count

func (l *Lights) Count() int

func (*Lights) Increment

func (l *Lights) Increment(from, to Coord, by int16)

func (*Lights) Toggle

func (l *Lights) Toggle(from, to Coord)

func (*Lights) TurnOff

func (l *Lights) TurnOff(from, to Coord)

func (*Lights) TurnOn

func (l *Lights) TurnOn(from, to Coord)

Jump to

Keyboard shortcuts

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