chesslablab / tsblab

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

TDD the space evaluation #32

Closed programarivm closed 2 years ago

programarivm commented 2 years ago

Let's implement more heuristic evaluation features! Remember, we're transcribing a statically-typed, object-oriented PHP codebase into TypeScript from scratch.

For further information please visit:

So far the following ones have been added to the codebase already:

This issue is about TDDing the space evaluation in a new .ts file called SpaceEvaluation.ts in the ts-chess/src/evaluation folder as well as the corresponding test file SpaceEvaluation.test.ts in the tests/unit/evaluation folder. The space evaluation will allow to find out which chessboard squares are being controlled by pieces of both colors.

For further details on how the space evaluation is implemented in PHP Chess please visit:

Keep it up and happy learning and coding!

owais34 commented 2 years ago

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