aboutsummaryrefslogtreecommitdiff
path: root/src/2022/day17/aoc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/2022/day17/aoc.h')
-rw-r--r--src/2022/day17/aoc.h43
1 files changed, 42 insertions, 1 deletions
diff --git a/src/2022/day17/aoc.h b/src/2022/day17/aoc.h
index d60e69a..1182cc4 100644
--- a/src/2022/day17/aoc.h
+++ b/src/2022/day17/aoc.h
@@ -1,7 +1,48 @@
#include "common.h"
+#include <stdint.h>
#include <vector>
namespace aoc2022 {
+/*
+..####. 00011110 0x1E
+
+...#... 00001000 0x08
+..###.. 00011100 0x1C
+...#... 00001000 0x08
+
+....#.. 00000100 0x04
+....#.. 00000100 0x04
+..###.. 00011100 0x1C
+
+..#.... 00010000 0x10
+..#.... 00010000 0x10
+..#.... 00010000 0x10
+..#.... 00010000 0x10
+
+..##... 00011000 0x18
+..##... 00011000 0x18
+
+####### 01111111 0x7F
+
+....... 00000000 0x00
+....... 00000000 0x00
+....... 00000000 0x00
+*/
+
+enum rock_type {
+ r1,
+ r2,
+ r3,
+ r4,
+ r5,
+ chamber,
+};
+
+struct rock17 {
+ rock_type type;
+ std::vector<uint8_t> rs;
+};
+
std::pair<int, int> day17(line_view);
-}
+} // namespace aoc2022