Source: Day 16: The Floor Will Be Lava
Full solution for today (spoilers!)
Part 1
You are given a grid of mirrors (
|-\/
) and empty space (.
).Diagonal mirrors just relect the light.
The horizontal and vertical mirrors are splitters, light hitting them head on (like
>|
) will split to go both directions. Light hitting edge on will just go through it.Starting in the top left going East, how many total tiles will a light beam illuminate?