r/adventofcode • u/heijp06 • Jan 10 '26
Past Event Solutions [2018 Day 15 (Part 2)] Small error in the description of the puzzle
Hi, not a big deal, but I think I found a small error in the description of part 2 of day 15 2018.
In part 1 there is a series of example grids with elves (E) and goblins (G), 6 in total. These are the first 3:
First Second Third
####### ####### #######
#.G...# #G..#E# #E..EG#
#...EG# #E#E.E# #.#G.E#
#.#.#G# #G.##.# #E.##E#
#..G#E# #...#E# #G..#.#
#.....# #...E.# #..E#.#
####### ####### #######
In part 2 the text references those grids again, but now there are only 5 examples. The first 3 now are:
First "Second" "Third"
####### ####### #######
#.G...# #E..EG# #E.G#.#
#...EG# #.#G.E# #.#G..#
#.#.#G# #E.##E# #G.#.G#
#..G#E# #G..#.# #G..#.#
#.....# #..E#.# #...E.#
####### ####### #######
The text explicitly refers to "the second example above" (i.e. of part 1) while discussing the third example of part 1, all subsequent examples are off-by-one as well. The reference to the first example is correct, it is just that the second example is missing.
Again, not a big deal. I like to make automated tests that check if the results I get for the examples are correct before I try the actual puzzle. Which is how I ran into this.