oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2.01k stars 408 forks source link

protected piece analysis lines #162

Open beefcup opened 5 years ago

beefcup commented 5 years ago

Lines connecting defended pieces like this idea in the attached pic(someone else's graphic not mine), where pieces of the same side that are defending each other are one color, and opposing pieces attacking are another.

I would design it with one sides defending lines as blue, the other as green, and the attacking lines btwn opposing pieces as red for positions where the pieces are intertwined.

The feature I am envisioning is a toggle, where 'protection lines enabled' shows all the lines to the user.

capture