https://kotlinlang.org logo
t

todd.ginsberg

12/11/2019, 8:21 PM
[Day 11]
s

stkent

12/11/2019, 10:40 PM
I stubbornly stuck with non-screen coordinates, and started my robot off facing south. Because all turns were relative (right, left), not absolute (east, west), nothing else needed to change apart from flipping x and y values when printing for part 2 (flipping x and y is equivalent to performing a 180 degree rotation about the origin).
Still a bit grim but tolerable (for me, in this case)
t

todd.ginsberg

12/12/2019, 12:01 AM
I love that solution.
s

stkent

12/12/2019, 3:15 AM
Thanks!
4 Views