Watch
1
0
Fork
You've already forked advent-of-code
0
advent-of-code/2019/day09/part2.rb

8 lines
220 B
Ruby

# frozen_string_literal: true
require_relative 'intcode'
program = Intcode.read(File.join(__dir__, 'input'))
computer = Intcode::Computer.new(program.as_memory) { 2 }
computer.on_output { |out| puts out }
computer.run