Collection route

We've been doing some door-to-door walking and written down the route we took. We're going to make a report of it, but it looks like others have been writing down their routes there too and ours is kind of hard to make out. The file with the route is here.

Here's a similar but smaller example:

┌┐──┌┐│┌┐┌┌┐┌┐┌┐┌┐┌┐┌┐└─┌┐─│┌──┐┌└─┌┐─┌┐
┌└──┘└┘││└┘││││└┘└┘│││┌─┘└──┘┌┐│└┐┌┘└─┘│
│┐┌→───┘└┐┌┘│└┘│┌─│││└┘┌─┌┐┌┐┌┘│┌└┘┌─┐┌│
││└┐┌─┐─┐││┌┘┌─│└┐│└┘│┌┘┌┘│┌┘│││└──│││││
│┌─┘┌─│┌┘│││┐└─┘││└──┘└┐│┌┘└┐││└┐│┌┘│└┐│
┌┘───┐││─└─┘└┐└┐┐└┐┌───┘│└─┐│└┘││┌┘┌┘─└┐
└───┐└┘└─┐└─┐│─┘│┌┘└────┘─│││──┐└┘│└─┐││
│─┌│└──┐┌┘│┌┘│┌┐││┌┐──┌───┐│└┐┌┘┌││──└┐│
└┐└─┐┌─│└┐└┘┐└┘││└┘└─┐└┐┌─└┘│└┘┌┘│└───┘│
┌┘└─└┘┌┘││┌┐└─┌┘└┐──┐│││┌──┐││┌┘┌──────│
└─┌───┘─│││└─┌┘┐─└──┘└┐└┘┌─┘└─┘┌│┌─────┘
┌─┘─────┘││┌─┘─┘┌┐┌─┐┐└┐┌┘┌──┌─┘│└────┐┐
│───┐│┌┐┌┘│└────┘││┌┘└┐│││┌─┐│┌─└┐└─┐│││
└┐└┐│└┘││┌┘┌┐┌───└┐│┌─│└┘│││└┘└──┘┌┐│┌┘│
┌└┐│└─┐┌┘│┌┐└┘┌┌┐│└┘└┐└──┘│─┌───┐┌┘└┐└─┐
└┐│└─┐│││││└┐─┘││┌─┐┌┘─┌──└─┘┌┐│└┘┌┐└─┌┘
┌┘│┌┐│└┘││└─┘┌┐││└─┘│┐┌──┐─┐─│└┐│┌┐└─┌┘│
└┐└┘│┌─┐│└───┘││└┐┌─┘││┌┐│─└─┐│└┘││┌─┘││
│└┐││││└┐┌─┐┌──┘┌││┌─┐│┌┘│┌─┐└──┌┘└┘┌┐││
└─└┘└┘└─└┘─└┘───┘└─┘─└┘└─└┘│└───┘───┘│└┘

We know that we made an arrow when we started our walk and that we returned to where we started at the end. Here's the example with our walk highlighted:

┌┐──┌┐│┌┌┐└──│┌└─┌┐─┌┐
┌└──┘└┘└┘│┌┐└┐┌┘└─┘│
│┐┌┘│┌─│┌─┌┐┌┐┌┘┌└┘┌│
││┌─┐─┐┌─│└┐││┌┘┌┘│┌┘││└──││
│┌─│┌┘┐└─┘││└──┘└┐│┌┘└┐││───┐││─└┐└┐┐└┐┌───┘│└─┐│└┘│┌┘─
└┘└─┐└─┐│─┘│┌┘└────┘─│││──┐│└─┐│
│─┌│┌┘│┌┘│┌┐││┌┐──┌───┐│└┐┌┘┌││──└┐
└┐└─┐┌─└┐└┘┐└┘││└┘└─┐└┐┌─└┘│└┘┌┘│└───┘
┌┘└─└┘││┌┐└─┌┘└┐──┐│││┌──┐││┌┘┌──────
└──│││└─┌┘┐─└──┘└┐└┘┌─┘└─┘┌│
─────┘││┌─┘─┘┌┐┌─┐┐└┐┌┘┌──┌─┘│───┐│┌┐┌┘│└────┘││┌┘└┐│││┌─┐│┌─└┐└─┐│└┐│└┘││┌┘┌┐┌───└┐│┌─│└┘│││└┘└──┘┌┐││
┌│└─┐┌┘│┌┐└┘┌│└┘└┐└──┘│─┌───┐┌┘└┐
└┐└─┐│││││└┐─┘┌─┐┌┘─┌──└─┘┌┐│└┘┌┐└─
┌┘│└┘││└─┘┌┐└─┘│┐─┐─│└┐│└─│
└┐│└───┘│┌─┘│┌┐─└─┐│└┘││
│└┐│┌┘└──┌┐││
└─└┘└────┘└────┘│└┘

If we count the highlighted tiles, we get 216. That's the length of our walk. We want to find the length of the larger, actual walk.

Below is various example code. It's possible to solve the puzzle by implementing the rest of the step and solve functions. Or you can take some other approach :)

Show Me The Code!

Output

    Submit Your Solution

    What is the length the walk we documentet in the provided file?

    Not logged in. You must sign up or log in before you can submit your solution!