day10, All Is Broken
This commit is contained in:
@@ -18,3 +18,30 @@ but yeah, if i make initial filling in of the I, then i could just fill in all .
|
||||
and count I
|
||||
|
||||
sounds like a plan
|
||||
** allright, i found main path, display all not on main path as ' '
|
||||
and the thing is a mess
|
||||
|
||||
i don't know how to select a point to mark as 'I'
|
||||
|
||||
but! if i select a point to mark as 'O'
|
||||
and then go around the main path, marking things on the side as 'O'
|
||||
then i would be able to fill in all which are neighbors of 'O' as 'O'
|
||||
and that would leave only 'I' to be counted
|
||||
|
||||
so.
|
||||
|
||||
how would i monitor consistent 'side' of the pipe during the walkhrough?
|
||||
if we go down - we color as 'O' one down.
|
||||
if we go angle - color two - one down and one to the right.
|
||||
and only color if it's not already on main path.
|
||||
|
||||
i suppose so
|
||||
** so a new method for initial pass of 'O'
|
||||
well, i'll need access to the direction, in which the neighbor is taken?
|
||||
nooo. not direction, but the symbol. ok, this is easier
|
||||
|
||||
but i'll need to mutate the field
|
||||
|
||||
no, i do need direction.
|
||||
|
||||
ok, let's go lunch maybe, and maybe it will be a place with a power outlet as well
|
||||
|
||||
Reference in New Issue
Block a user