chesslablab / tsblab

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

TDD the pressure evaluation #33

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 pressure evaluation in a new .ts file called PressureEvaluation.ts in the ts-chess/src/evaluation folder as well as the corresponding test file PressureEvaluation.test.ts in the tests/unit/evaluation folder. The pressure evaluation will allow to find out which squares are being threatened at any given moment.

For further details on how the pressure 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 !!