#advent-of-code #intcode #aoc2019 #aoc

aoc19intcode

A standalone Advent of Code 2019 Intcode VM implementation

10 releases

0.3.2 Dec 19, 2024
0.3.1 Dec 19, 2024
0.2.3 Dec 19, 2024
0.2.0 Mar 21, 2020
0.1.2 Feb 23, 2020

#2 in #adventofcode

Download history 597/week @ 2024-12-18

330 downloads per month

MIT license

11KB
213 lines

A standalone Advent of Code 2019 Intcode VM implementation

aoc19intcode

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
);

lib.rs:

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
);

No runtime deps