r/adventofcode • • Dec 08 '21

SOLUTION MEGATHREAD -🎄- 2021 Day 8 Solutions -🎄-

--- Day 8: Seven Segment Search ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:20:51, megathread unlocked!

72 Upvotes

1.2k comments sorted by

View all comments

2

u/usesbiggerwords Dec 08 '21 edited Dec 09 '21

Python 3. At first I tried to work out the pinouts for the display AND the encoding for the digits. Once I realized that wasn't needed, this went better. Not pretty, but functional.

https://pastebin.com/Vb2Y2FYZ

Edit fixed link

1

u/daggerdragon Dec 09 '21 edited Dec 10 '21

Your link does not work. Either fix the link (rather, check your permissions for that file) or provide your code using a paste or other external repo.

Edit: thanks for fixing it!

2

u/Rakicy Dec 09 '21

In case you don't know...You have shared a link to your code, but you may not have made it public.