aboutsummaryrefslogtreecommitdiff
path: root/src/2022/day24/aoc.cpp
blob: 80b233c9f0c09a01cb105d21c0ee6d89ea909cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "aoc.h"

namespace aoc2022 {

struct pos {
  int x;
  int y;
};

void expedition(int m, pos p, pos target, valley& v, int* max) {

}

std::pair<int, int> day24(line_view file) {
  valley v{8,6}; //sample

  int height{0};
  per_line(file, [&v, &height](line_view lv) {
    v.load(height++, lv);
    return true;
  });

  int min{INT32_MAX};
  expedition(0, {1, 0}, {6, 5}, v, &min); // sample

  return {min, 0};
}
}