Previous:
Advent Of Code 2016 – Day 1
Day 2
Start: 12/4/2016
Finish 12/4/2016
Language: Python3
SPOILER ALERT: If you have any inkling, any whatsoever, to work on the Advent of Code…. DO NOT READ THIS BLOG POST. DO NOT LOOK AT MY GITHUB PROJECT. It is no fun if you’re not solving it yourself, and you’ll feel so much better about yourself if you can figure it out without looking up an answer. This blog post is not to give away the answer, but instead, is there for people to learn from.
As always, the following code is in my GitHub:
Problem Statement
The problem started off simple enough. There is a 9 digit keypad listed:
123
456
789
If you start at the 5 key, and are given directions to move up, down, right or left, multiple times, what are the keys that you end at after each iteration of directions?
Not too bad, and I was picking a language in my wheelhouse, Python. I chose Python 3, since I don’t get much experience with it, but unfortunately, this program did not stretch my knowledge of Python 3. There wasn’t enough meat to the problem to really dive in.
So let’s look at the code:
Continue reading →