You are reading a single comment by @Drakien and its replies. Click here to read the full conversation.
  • I messed about for far too long because I was using len(line) and wasn't aware it was also counting the line break. Ended up doing 'linelength = len(lines[0]) - 1' because I didn't want to read up on importing it properly. At least I'm no longer using Pandas dataframes.

    https://github.com/TijmenK/AoC2020/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.

About

Avatar for Drakien @Drakien started