Crate aoc19intcode

Source
Expand description

§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.

Enums§

IntcodeError
Possible errors.