Mercurial > repos > other > adventofcode2023
diff day18.txt @ 27:6b58ddfaed38
Add Day 18 part 1 solution using line crossing
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 02 Jan 2024 16:04:33 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/day18.txt Tue Jan 02 16:04:33 2024 +0000 @@ -0,0 +1,46 @@ +--- Day 18: Lavaduct Lagoon --- + +You have a set of instructions - directions, distance and hex colour + +R 6 (#70c710) +D 5 (#0dc571) +L 2 (#5713f0) +D 2 (#d2c081) +R 2 (#59c680) +D 2 (#411b91) +L 5 (#8ceee2) +U 2 (#caa173) +L 1 (#1b58a2) +U 2 (#caa171) +R 2 (#7807d2) +U 3 (#a77fa3) +L 2 (#015232) +U 2 (#7a21e3) + +This creates a trench: + +####### +#.....# +###...# +..#...# +..#...# +###.### +#...#.. +##..### +.#....# +.###### + +This is 38 dug spaces. The inside can then be dug out: + +####### +####### +####### +..##### +..##### +####### +#####.. +####### +.###### +.###### + +This is now 62 dug spaces. \ No newline at end of file