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

Fix the defense evaluation #475

Closed
programarivm opened this issue Jan 22, 2024 · 0 comments · Fixed by #476
Closed

Fix the defense evaluation #475

programarivm opened this issue Jan 22, 2024 · 0 comments · Fixed by #476
Labels

Comments

@programarivm
Copy link
Member

The defense evaluation in src/Eval/DefenseEval.php is still perhaps not too clear in its explanation and needs some fine-tuning as described in the following example.

screencapture-reactchess-net-2024-01-22-10_33_25

If the pawn on a7 is moved, these pieces will be exposed to attack: White's queen on a4, The rook on a8:

  • Movetext: 1.c4 e6 2.Nc3 d5 3.cxd5 exd5 4.d4 Bb4 5.Bd2 c5 6.Qa4+ Bd7 7.Nb5 Bxd2+ 8.Kxd2 Qb6 9.e3 c4

  • FEN: rn2k1nr/pp1b1ppp/1q6/1N1p4/Q1pP4/4P3/PP1K1PPP/R4BNR w kq -

Happy learning!

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

Successfully merging a pull request may close this issue.

1 participant