2019: Day 9 Part 2
This commit is contained in:
parent
f4c896b933
commit
0967b498c7
1 changed files with 8 additions and 0 deletions
8
2019/day9/part2.rb
Normal file
8
2019/day9/part2.rb
Normal 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
|
||||
Loading…
Reference in a new issue