diff --git a/2016/ruby/day_12.rb b/2016/ruby/day_12.rb index 85b45c7..3427c48 100644 --- a/2016/ruby/day_12.rb +++ b/2016/ruby/day_12.rb @@ -1,4 +1,4 @@ -registers = Hash[(?a..?d).map {|c| [c, 0] }] +registers = { ?a => 0, ?b => 0, ?c => 1, ?d => 0 } pc = 0 data = DATA.each_line.to_a