Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDD the Chess\Eval\ActivityEval class #703

Open
programarivm opened this issue Dec 20, 2024 · 0 comments
Open

TDD the Chess\Eval\ActivityEval class #703

programarivm opened this issue Dec 20, 2024 · 0 comments

Comments

@programarivm
Copy link
Member

A few recently added tests are now refuting Blab's theorem of chess oscillations:

More specifically:

  • 1.a4 h5
  • 1.a4 a5

This is due to a lack of evaluation features that still need to be implemented.

In order to fix these exceptions, a new evaluation feature called Activity needs to be implemented in the php-chess/src/Eval folder. The PHPUnit tests are to be written in the php-chess/tests/unit/Eval/ActivityEvalTest.php file accordingly.

The activity of a piece is the number of squares it can move to in the next turn — not to confuse with Space, the number of squares controlled by each player.

See:

active: Describes a piece that threatens a number of squares, or that has a number of squares available for its next move. It may also describe an aggressive style of play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant