|
1 | 1 | # adventofcode2016
|
2 | | -My solutions for adventofcode.com (2016) |
3 | | -- Language: Python |
| 2 | +My solutions for [adventofcode.com (2016)](http://adventofcode.com/2016) with Python. |
| 3 | + |
| 4 | +## My base classes |
| 5 | +### Solution |
| 6 | +- Solution for a day can calculate part 1 and 2 |
| 7 | +- Input is loaded from file input.txt inside the folder of the day |
| 8 | +- Solutions of a day have to define their own calculate method |
| 9 | + |
| 10 | +### Test |
| 11 | +- Sets up and tears down calculation of a solution for a day |
| 12 | +- Mocks the input from the input.txt by an input string |
| 13 | + |
| 14 | +## My libraries |
| 15 | +### Point2D |
| 16 | +- 2D point inside cartesian coordinate system |
| 17 | +- Set and get x and y coordinates |
| 18 | +- Add, sub and neg points |
| 19 | +- Calc euclidean and manhattan distances between points |
| 20 | +- Print point coordinates |
| 21 | + |
| 22 | +## Map |
| 23 | +- Map based on Image class ([Pillow](http://python-pillow.org)) |
| 24 | +- Set and get values for 2D points |
| 25 | +- Get minimum and maximum coordinates of set points |
| 26 | +- Show map image |
| 27 | +- Image output gets flipped depend on coordinate origin |
| 28 | + |
| 29 | +## Keypad |
| 30 | +- Move finger in direction |
| 31 | +- Press button and append code |
0 commit comments