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