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.
The
defendedSqs()
method should be implemented inpiece/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 theplay()
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!