aboutsummaryrefslogtreecommitdiff
path: root/src/2015/day3/aoc.h
blob: 105cf9f64d3696f39080707c6f846a4f3e39e38b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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