Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ASCIIPuter ¶
type ASCIIPuter struct {
// contains filtered or unexported fields
}
An ASCIIPuter makes it easy to do ASCII input to and output from a Puter.
func (*ASCIIPuter) Exec ¶
func (a *ASCIIPuter) Exec(input string) string
Exec executes the given command and returns its output.
func (*ASCIIPuter) Input ¶
func (a *ASCIIPuter) Input(in string)
Input feeds some ASCII input to the Puter.
func (*ASCIIPuter) Output ¶
func (a *ASCIIPuter) Output() string
Output returns the current ASCII-interpreted output of the Puter.
func (*ASCIIPuter) Run ¶
func (a *ASCIIPuter) Run() bool
Run runs the puter until it wants more input.
type Program ¶
type Program []int
A Program written in Intcode.
func LoadProgram ¶
LoadProgram loads an intcode program from a file.
type Puter ¶
type Puter struct {
// contains filtered or unexported fields
}
A Puter is an intcode computer.
Click to show internal directories.
Click to hide internal directories.