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

Avoid to get an extra move when puzzle is incomplete #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bend86
Copy link

@bend86 bend86 commented Nov 25, 2019

Example(after Ke3 next move is reported as ambiguous, but Ke3 is in the pgn):
29. Rg1 Ne2+ 30. Kd2 Nxg1 31. Ke3 0-1

We take into account the last move only if it's the player turn. Than we have:
29. Rg1 Ne2+ 30. Kd2 Nxg1 0-1

Example(after Ke3 next move is reported as ambiguous, but Ke3 is in the pgn): 
29. Rg1 Ne2+ 30. Kd2 Nxg1 31. Ke3 0-1

We take into account the last move only if it's the player turn. Than we have:
29. Rg1 Ne2+ 30. Kd2 Nxg1 0-1
@vitogit
Copy link
Owner

vitogit commented Feb 25, 2020

Hi @bend86 thanks for the PR, I think it make sense but to be sure that we are not failing to see some edge case, can you post the pgn of your example? or other examples

@vitogit
Copy link
Owner

vitogit commented May 22, 2021

@karol-brejna-i Now that you were deep into code, what do you think of this PR?

@karol-brejna-i
Copy link
Collaborator

I'll fix my previous PR (which will deepen my understanding of the code), and take a look at this afterward.

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

Successfully merging this pull request may close these issues.

None yet

3 participants