lights

package
v0.0.0-...-06eecd2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lights

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

Lights represents an array of lights.

func New

func New() *Lights

New returns a new array of lights.

func (*Lights) LitLights

func (l *Lights) LitLights() (ret int)

LitLights returns the number of lights in the array that are lit.

func (*Lights) RunInstructions

func (l *Lights) RunInstructions(s string)

RunInstructions runs the instructions in the provided file.

func (*Lights) RunInstructions2

func (l *Lights) RunInstructions2(s string)

RunInstructions2 runs the instructions in the provided file.

func (*Lights) TotalBrightness

func (l *Lights) TotalBrightness() (ret int)

TotalBrightness returns the total brightness of the light array.

Jump to

Keyboard shortcuts

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