I did find a bug that's pretty easy to reproduce. If you have started or completed a pipe from a depot, then click on the depot to clear out the pipe, you can no longer run a pipe out of the depot in the same direction as the cleared pipe.
Also, it's difficult to tell which depot is selected, at least on my web browser. You might want to test in different browser engines, with different dark-mode browser and OS settings, to make sure there's enough contrast. Bonus points if you also test it with dark-mode plugins.
Instead of fixing the bug as it is, I recommend that you add an ability to partially deploy a pipe, stopping when either the pipe is dragged off the edge of the grid or into an invalid grid location, when the user lifts the mouse button while dragging, when the user presses the 'escape' key while dragging, or when the user clicks on an invalid location when placing pipes by clicking. At this point, instead of the depot being selected, the grid location of the last placed pipe piece would be selected. The user could then place pipe from there, or start from another depot or pipe pipe. Clicking on pipe, or dragging upstream from the terminus of the pipe, could start routing from that grid location, removing any pipe that had been routed past that location.
This would not only make the interface more intuitive, while making it easier for the user to work on larger and more difficult puzzles, but it should also make development and maintenance of the game logic easier, by making it stateless.
wildlogic•1d ago
Thanks for giving it a try - I would appreciate any feedback!