day18, another example working

This commit is contained in:
efim
2023-12-18 19:37:17 +00:00
parent 86c9ad7653
commit 6dabe8bc66
2 changed files with 152 additions and 31 deletions

View File

@@ -19,9 +19,12 @@ when there's a jump - compare counts, to make decision on whether to switch 'isI
** no. just because they are long doesn't mean they won't ever get one near another
* another idea is to save | and corners, as if we're going from left to right
this seems reasonable.
** TODO i guess []SpecialSymbol which has Col and Symbol
** DONE i guess []SpecialSymbol which has Col and Symbol
** DONE no, let's make it map. yes will have to init, but yuck anyway
** TODO then different logic on border building.
if U \ D - on all but last add '|'
on last - calc with the next turn, what should be saved 'as if traversing from the left'
for L \ R - on last - calc what the turn was
** TODO !! between last and first movement the corner is unknown.
so, copy the first instruction to the end?