code

package
v0.0.0-...-79a803d Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

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

func Load

func Load(s string, d int) (c Code)

Creates a new Code object from a string of characters representing the code, and an explicit depth

func New

func New(l, d int) (c Code)

Creates a new Code object with a randomly generated code with the supplied length & depth

func (Code) Depth

func (c Code) Depth() int

func (Code) Length

func (c Code) Length() int

func (Code) Read

func (c Code) Read(p string) (rtn []int)

func (Code) Score

func (c Code) Score(t int) (s, d float64)

Return

func (Code) String

func (c Code) String() string

func (Code) Try

func (c Code) Try(g []int) (b, w int)

Jump to

Keyboard shortcuts

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