diff options
Diffstat (limited to 'src/2015/day3/aoc.h')
-rw-r--r-- | src/2015/day3/aoc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/2015/day3/aoc.h b/src/2015/day3/aoc.h new file mode 100644 index 0000000..105cf9f --- /dev/null +++ b/src/2015/day3/aoc.h @@ -0,0 +1,19 @@ +#pragma once + +#include "common.h" + +namespace aoc2015 { + +enum class dir { up, down, left, right }; + +struct house { + int x; + int y; + + bool operator<(const house& h) const noexcept { return x < h.x ? true : (x > h.x ? false : y < h.y); } +}; + +house move_day3(house, dir); +std::pair<size_t, size_t> day3(line_view); + +} // namespace aoc2015 |