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

Movegen generates moves for pinned pieces #36

Open
akamiru opened this issue Jun 16, 2021 · 0 comments
Open

Movegen generates moves for pinned pieces #36

akamiru opened this issue Jun 16, 2021 · 0 comments

Comments

@akamiru
Copy link

akamiru commented Jun 16, 2021

1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. e3 O-O 5. Ne2 d5 6. a3 Be7 7. cxd5 Nxd5 8. g3
Nxc3 9. Nxc3 c5 10. dxc5 Qxd1+ 11. Nxd1 Bxc5 12. b4 Be7 13. Nc3 Bd7 14. Be2 a6
15. Bb2 Bc6 16. f3 Rd8 17. Kf2 Rd2 18. Rab1 Nd7 19. Rhd1 Rxd1 20. Rxd1 Bf6 21.
h4 Nb6 22. Rd2 Be7 23. e4 f5 24. e5 a5 25. Rd4 axb4 26. axb4 Na4 27. Nxa4 Rxa4
28. Bc3 Kf7 29. Bc4 b5 30. Be2 h6 31. h5 Ra3 32. Be1 Ra4 33. Bc3 Kg8 34. f4 Kf7
35. Ke1 Ra3 36. Kd2 Ra2+ 37. Kd1 Kf8 38. Ke1 Rc2 39. Bd2 Rb2 40. Kf2 Ra2 41.
Kf1 Ke8 42. Bc3 Ra3 43. Be1 Ra4 44. Bc3 Kf8 45. Ke1 Ra2 46. Rd3 Kf7 47. Rd4 g5
48. hxg6+ Kxg6 49. Rd1 h5 50. Kf1 h4 51. gxh4 Bxh4 52. Rd2 Ra3 53. Rc2 Be4 54.
Rc1 Ra2 55. Bd4 Bg3 56. Be3 Rb2 57. Bxb5 Rxb4 58. Be8+ Kh6 59. Rc3 Rb1+ 60. Ke2
Re1+ 61. Kd2 Rh1 62. Rc8 Rh2+ 63. Kc1 Be1 64. Bb5 Kg6 65. Be8+ Kh7 66. Bc6 Re2
67. Rc7+ Kh6 1/2-1/2

The move Ne2 can only be g1e2 because the knight on c3 is pinned to the king by the bishop. Movegen still generates the move c3e2.

Probably not too bad for the engine as even at low depth it won't generate moves that hang the king.

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

No branches or pull requests

1 participant