lights

package
v0.0.0-...-0235693 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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 Cell

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

type Grid

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

func NewGrid

func NewGrid(dimX, dimY int) *Grid

func (*Grid) LightsOn

func (g *Grid) LightsOn() int

func (*Grid) LigthingNeighbors

func (g *Grid) LigthingNeighbors(cri, cci int) int

func (*Grid) Next

func (g *Grid) Next()

func (*Grid) PopulateFromString

func (g *Grid) PopulateFromString(s string)

func (*Grid) TurnOnEdges

func (g *Grid) TurnOnEdges()

Jump to

Keyboard shortcuts

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