[][src]Crate aoc19intcode

A standalone Advent of Code 2019 Intcode VM implementation

That's it. IDK what else to tell ya.

Examples

use aoc19intcode::IntcodeVM;
assert_eq!(
    IntcodeVM::from_prog(&[2, 4, 4, 5, 99, 0])
        .run_prog()
        .unwrap()[5],
    9801
);

Structs

IntcodeVM

A VM that runs Intcode programs.

RanHaltedVMError

An error returned if the VM is tried to be ran again after halted.