springs

package
v0.0.0-...-ba93201 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountValid

func CountValid(history History, target Record) int

func Unfold

func Unfold(history History, expected Record) (History, Record)

Types

type History

type History string

func (*History) Add

func (h *History) Add(r Result)

func (History) Normalise

func (h History) Normalise() History

func (History) String

func (h History) String() string

type Record

type Record []int

func RecordFromString

func RecordFromString(s string) Record

func (Record) AddFail

func (record Record) AddFail() Record

func (Record) AddOk

func (record Record) AddOk() Record

func (Record) Copy

func (record Record) Copy() Record

func (Record) Normalise

func (record Record) Normalise() Record

func (Record) String

func (record Record) String() string

type Result

type Result = byte
var (
	Ok      Result = '.'
	Failed  Result = '#'
	Unknown Result = '?'
)

Jump to

Keyboard shortcuts

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