Commit Graph

2 Commits

Author SHA1 Message Date
Aryadev Chavali
e5c805a17a Finished round 2 of puzzle 9
Annoying bug that took ages to fix: for multi-execute, there may be
times where movements go in complete diagonals.  In this case, we need
to move in the unit vector diagonal direction.  So I modified
update-tail for this case.  Never happens in round 1 lol.
2023-10-21 04:25:23 +01:00
Aryadev Chavali
b99cda7087 Finished round 1 of puzzle 9
Pretty interesting, functional idioms kinda fail here as there are no
nice functions I can think of for the single-knot-execute-line
`dotimes` section.  I could use tail recursion with an optimisation
but this is pretty explicit.  You can compare execute-lines to
execute-line to see which type of iteration fits you.
2023-10-18 17:03:36 +01:00