Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct { Position int Memory map[int]int Input []int Name string RelativeBase int InstructionCount int }
Machine is a running environment for an intcode program.
func NewMachine ¶
NewMachine returns an initialized intcode machine.
func (*Machine) Clone ¶
Clone provides a clone of the current machine with all the code and positions kept in tact.
func (*Machine) ProcessProgram ¶
ProcessProgram will run an intcode.
Click to show internal directories.
Click to hide internal directories.