jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
231 stars 54 forks source link

Defended Piece #85

Open jjsalasrivera opened 7 months ago

jjsalasrivera commented 7 months ago

Hi,

Using chess v.3.2 it seems to be impossible to get if a Piece is defended by another piece in the same team. I just read all the API documentation and I cant see anything to accomplish this requirement.

Its to easy to get if a Piece is attacked by a enemy but I have no clue how to check if is defended.

Thanks