medicine

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

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

Machine represents a medicine making machine.

func New

func New(p string) *Machine

New creates a new machine based on the instructions at the provided path.

func (*Machine) Build

func (m *Machine) Build() int

Build takes the required molecule and takes all possible decomposition paths to find the shortest.

func (*Machine) Calibrate

func (m *Machine) Calibrate() int

Calibrate returns the number of molecules that can be created with one replacement.

Jump to

Keyboard shortcuts

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