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 issue #41 Different ply returned by same position #42

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

gbtami
Copy link
Contributor

@gbtami gbtami commented Feb 7, 2017

Use nth ply move from .pgn in nth ply position in move related rules.

Use nth ply move from .pgn in nth ply position in move related rules.
@gbtami gbtami mentioned this pull request Dec 2, 2017
gbtami and others added 5 commits February 6, 2018 15:23
clang-10.0.0 warns about this misleading indentation as follows:

> scout.cpp: In function 'void Scout::search(Thread*)':
> scout.cpp:302:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
>   302 |           if (move)
>       |           ^~
> scout.cpp:304:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the '
> if'
>   304 |               pos.do_move(move, *st++, pos.gives_check(move));
>       |               ^~~

This looks like a bug to me as the condition `move==MOVE_NONE` will
cause a NULL point dereference in `do_move`.

Signed-off-by: Ali Polatel <alip@exherbo.org>
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.

2 participants