r/adventofcode • • Dec 07 '15

SOLUTION MEGATHREAD --- Day 7 Solutions ---

--- Day 7: Some Assembly Required ---

Post your solution as a comment. Structure your post like previous daily solution threads.

Also check out the sidebar - we added a nifty calendar to wrangle all the daily solution threads in one spot!

23 Upvotes

226 comments sorted by

View all comments

Show parent comment

1

u/roboticon Dec 08 '15 edited Dec 08 '15

how did you handle numeric vs. named wires?

ie, did you write three separate sed rules for:

  • x AND y -> z
  • 2 AND y -> z
  • x AND 2 -> z
  • 2 AND 2 -> z

edit: my rules: santa7.sed.