Mercurial > repos > other > adventofcode2023
view day18.txt @ 32:a1b748f2c416
Implement day 23 "longest route finding"
Allows for "downhill only" and "can climb" approaches. But
climbing still brute-forces the map and takes too long on the
final input.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 04 Jan 2024 11:18:56 +0000 |
parents | 6b58ddfaed38 |
children |
line wrap: on
line source
--- 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.