I know that we can brute force it by placing an obstacle at every valid position in the path, but is there a more elegant / efficient solution?

  • VegOwOtenks@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    5 days ago

    One optimization some used was to detect loops by only recording the turning points instead of all walked tiles.