Watch
1
0
Fork
You've already forked advent-of-code
0

2019: Day 9 Part 2

This commit is contained in:
Jeremy Kaplan 2019-12-09 10:15:39 -08:00
commit 0967b498c7

8
2019/day9/part2.rb Normal file
View file

@ -0,0 +1,8 @@
# 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