I did the same! Bloody one-based coordinates.
I also remembered modulo maths, but not how to do it in Python, so I bodged an inelegant coordinate wrapping section.
https://github.com/ips-james/AdventOfCode/blob/main/day3.py
Ha! I did the exact same with the coordinates but initially thought that was where I was making a mistake so I replaced it with modulo maths.
@Tijmen started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
I did the same! Bloody one-based coordinates.
I also remembered modulo maths, but not how to do it in Python, so I bodged an inelegant coordinate wrapping section.
https://github.com/ips-james/AdventOfCode/blob/main/day3.py