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

Crazyhouse en passant bug with DropMove #23

Open
dbergan opened this issue Apr 17, 2023 · 0 comments · Fixed by dbergan/dartchess#2 · May be fixed by #24
Open

Crazyhouse en passant bug with DropMove #23

dbergan opened this issue Apr 17, 2023 · 0 comments · Fixed by dbergan/dartchess#2 · May be fixed by #24

Comments

@dbergan
Copy link

dbergan commented Apr 17, 2023

_copyWith() carries the epSquare forward to the next move when a DropMove is played, which makes this sequence possible:

  1. d4 e5
  2. Nf3 Qg5
  3. Nxg5 Be7
  4. dxe5 Bd8
  5. Nc3 f5 (creates epSquare at f6)
  6. Q@f7 (copyWith() is given null for epSquare, which then copies the epSquare of f6 forward to Black)
    6... gxf6 (captures the Queen on f7!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant