chesslablab / tsblab

A chess library for TypeScript.
GNU General Public License v3.0
15 stars 5 forks source link

Implement the defendedSqs() method in piece/P #83

Closed programarivm closed 2 years ago

programarivm commented 2 years ago

The defendedSqs() method should be implemented in piece/P.ts in a similar way as it is implemented in Chess\Piece\P. defendedSqs() returns the squares defended by a piece and is the building block of the defense evaluation. This will eventually allow to implement the play() method and therefore test the heuristic evaluation features in tests/unit/eval/ by using chess opening samples.

Keep it up, and happy coding and learning!

owais34 commented 2 years ago

Hi Please assign me this issue 😁 . Happy learning and coding !!