linedrawer

package
v0.0.0-...-f64633d Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(f func(NewFunc))

Types

type LineDrawer

type LineDrawer interface {
	// DrawLine draws a line of cells. The length of the cells slice
	// will be the value passed to the NewLineDrawer function;
	// each element will contain only values from 0 to numStates-1.
	DrawLine(cells []int)
}

LineDrawer is implemented by a display that can show successive lines of a 1-dimensional cellular automaton.

type NewFunc

type NewFunc func(numCells, numStates int) (LineDrawer, error)

Jump to

Keyboard shortcuts

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