chesslablab / tsblab

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

TDD the Knight #13

Closed programarivm closed 2 years ago

programarivm commented 2 years ago

At this stage everything's ready to start writing the chess pieces!

Remember:

We're writing an object-oriented chess codebase not only because we want to practice software development skills but also to avoid the intricacies of chess bitboards.

The transcription from PHP Chess to TypeScript Chess is going well, however, it is worth saying that is quite a challenge that needs to be completed accurately.

Let's stick to the following guidelines for the time being:

In other words, for the sake of simplicity the next step consists in adding all the chess pieces to the codebase with the condition that only the mobility() method is implemented for the time being. Then, we'll be in a better position to start coding AbstractPiece.

Thus, this issue is about TDDing the mobility() method in a new .ts file called Knight.ts in the ts-chess/src/piece folder.

For further information, please visit:

Keep it up and happy coding and learning!

owais34 commented 2 years ago

Hi Please assign me this issue