day10, marking the path

This commit is contained in:
efim
2023-12-10 12:31:47 +00:00
parent 76be5c45c3
commit 0b6c521b5b
2 changed files with 67 additions and 7 deletions

20
day10/notes.org Normal file
View File

@@ -0,0 +1,20 @@
#+title: Notes
* part 2.
how would i even try to check of 'in' or 'out' of the loop?
i guess i could mark things while i go through the loop?
or, i could count manually?
i could change neighbors of the beast point.
then do one more pass around, setting bool 'onMainPath' to true
and then change all else to .
i guess i could then do one more pass, and mark as 'I' and 'O' closest line of .
another idea i don't really want to pursue - 'color fill from some corner'
this is also painful due to pipes touching still need to let the 'O' filling in.
but yeah, if i make initial filling in of the I, then i could just fill in all . with I until nothing changes.
and count I
sounds like a plan