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/Slider #81

Closed programarivm closed 2 years ago

programarivm commented 2 years ago

The defendedSqs() method should be implemented in piece/Slider.ts in a similar way as it is implemented in Chess\Piece\Slider. 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!