# adventofcode2016
My solutions for adventofcode.com (2016)
- Language: Python

# adventofcode2016
My solutions for [adventofcode.com (2016)](http://adventofcode.com/2016) with Python.

## My base classes
### Solution
- Solution for a day can calculate part 1 and 2
- Input is loaded from file input.txt inside the folder of the day
- Solutions of a day have to define their own calculate method

### Test
- Sets up and tears down calculation of a solution for a day
- Mocks the input from the input.txt by an input string

## My libraries
### Point2D
- 2D point inside cartesian coordinate system
- Set and get x and y coordinates
- Add, sub and neg points
- Calc euclidean and manhattan distances between points
- Print point coordinates

## Map
- Map based on Image class ([Pillow](http://python-pillow.org))
- Set and get values for 2D points
- Get minimum and maximum coordinates of set points
- Show map image
- Image output gets flipped depend on coordinate origin

## Keypad
- Move finger in direction
- Press button and append code

Add my base classes and my libraries
Readme: Add my base classes and my libraries

My base classes: Solution, Test
My libraries: Point2D, Map, Keypad
