As a player I want to place my walls as efficiently as possible. AoE2 has two kinds of wall - “orthogonal” and “diagonal”. When I draw a line from A to B, I want the game to combine orthogonal and diagonal walls to make a shortest path from A to B.
The current wall placement algorithm does not draw a shortest path. Unless A to B is exactly a diagonal, the game will always use orthogonal walls. This wastes time and resources – but even more annoyingly, it makes it very hard to place a diagonal wall quickly. Misclick by one tile and your wall is completely different!
Here’s an illustration of the problem, showing a wall with the current algorithm, and the wall that I think it should have placed instead:
Thank you, the purpose of the CodePen and the scenario was indeed to let people experiment this new walling (with possibilities to cycle between the configurations, as mentioned by @Hectornauta), so that devs could maybe integrate it in the game.