chesslablab / tsblab

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

TDD the material evaluation #39

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 material evaluation in a new .ts file called MaterialEval.ts in the ts-chess/src/eval folder as well as the corresponding test file MaterialEvaluat.test.ts in the tests/unit/eval folder.

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

As you can see, it implies that the getPiecesByColor() method must also be implemented in Board.ts.

Keep it up and happy learning and coding!

owais34 commented 2 years ago

Hi Please assign me this issue 😁 Happy Learning and coding !!