More intcode refactoring
This commit is contained in:
@@ -5,7 +5,9 @@ fn run(program: []i32, noun: i32, verb: i32) i32 {
|
||||
program[1] = noun;
|
||||
program[2] = verb;
|
||||
|
||||
intcode.run(program);
|
||||
var machine = &intcode.Machine{ .memory = program, .ip = 0 };
|
||||
|
||||
machine.run();
|
||||
|
||||
return program[0];
|
||||
}
|
||||
|
Reference in New Issue
Block a user