This is neat!<p>I was working on something similar recently:
<a href="https:&#x2F;&#x2F;github.com&#x2F;blevinstein&#x2F;chess_assistant&#x2F;blob&#x2F;master&#x2F;screenshot-2015-02-04.png" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;blevinstein&#x2F;chess_assistant&#x2F;blob&#x2F;master&#x2F;s...</a><p>I had been thinking about ways to analyze the graph of &quot;threats&quot;, so I focused on which pieces were threatening which. I wanted to eventually extend this to also include which pieces were threatening which squares, but never got that far.