Copyright | (c) Eric Mertens 2017 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2017/day/11
Day 11 asks us to implement a hex grid coordinate system and compute distances on it.
https://www.redblobgames.com/grids/hexagons/
- X grid lines are diagonal from
sw
tone
- Y grid lines are vertical
+ 1,2 + \ / 0,2 +--+ 2,1 / \ -+ 1,1 +- \ / 0,1 +--+ 2,0 / \ + 1,0 +
Documentation
Print the solutions to day 11. The input file can be overridden via the command-line.
>>>
:main
761 1542