-
Notifications
You must be signed in to change notification settings - Fork 472
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
Detect stalemate in KXK endgames #2
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also, handle cases where there are 2 bishops of the same color.
Much simpler! Works on all the examples, and bench is the same still. No effect on ELO predicted :). |
Tuned on bench: Total time (ms) : 3704 Nodes searched : 5689260 Nodes/second : 1535977 vs vanilla Total time (ms) : 3911 Nodes searched : 5001819 Nodes/second : 1278910
Lazy eval tune
Oops, did not intend to include these commits. |
Probably easiest to close this pull request, and open a new one. |
Closed
mcostalba
pushed a commit
that referenced
this pull request
Dec 4, 2012
Closed
glinscott
added a commit
to glinscott/Stockfish
that referenced
this pull request
Sep 11, 2013
joergoster
referenced
this pull request
in joergoster/Stockfish-old
Nov 29, 2014
lucabrivio
referenced
this pull request
in lucabrivio/Stockfish
Nov 19, 2015
alwey
pushed a commit
to alwey/Stockfish
that referenced
this pull request
Nov 23, 2016
Merging official release into fork
locutus2
referenced
this pull request
in locutus2/Stockfish-old
Nov 30, 2016
lp--
pushed a commit
to lp--/Stockfish
that referenced
this pull request
Dec 28, 2017
glinscott
pushed a commit
to glinscott/Stockfish
that referenced
this pull request
Jul 19, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also, handle cases where there are 2 bishops of the same color.
Shouldn't be much effect on ELO, as bench remains the same:
Before:
Total time (ms) : 3911
Nodes searched : 5001819
Nodes/second : 1278910
After:
Total time (ms) : 3895
Nodes searched : 5001819
Nodes/second : 1284164
Handles the cases in http://www.talkchess.com/forum/viewtopic.php?t=42335.
position fen K7/Q7/8/8/8/8/5p2/7k w - - 0 1
go depth 1
K7/8/8/8/8/8/5Q2/7k b - - 0 1
info depth 1 seldepth 2 score cp 678 nodes 66 nps 3000 time 22 multipv 1 pv a7f7
bestmove a7f7 ponder (none)
position fen 8/1p4p1/2k2R1p/8/8/8/1r5r/K7 b - - 0 1
go infinite
...
info depth 33 seldepth 76 score cp 1074 upperbound nodes 6348446 nps 2106319 time 3014 multipv 1 pv c6d5 f6f5 d5e4 f5e5 e4f4 e5f5 f4g3 f5g5 g3f3 g5f5 f3g3
Sample of FENs detected as stalemate:
K7/8/8/8/8/4N1Q1/8/7k b - - 0 1
K7/8/8/8/3Q4/6N1/8/4k3 b - - 0 1
K7/8/8/8/5Q2/7k/8/4N3 b - - 0 1
K7/8/8/8/5N1k/8/6Q1/8 b - - 0 1
K5Q1/8/8/8/8/8/5N1k/8 b - - 0 1
K7/8/8/8/4N3/5Q2/8/4k3 b - - 0 1
K7/8/1q6/8/8/8/k7/8 w - - 0 1
K7/8/1q6/8/8/8/8/k7 w - - 0 1
K7/8/1q6/8/8/k7/8/8 w - - 0 1
K7/8/1qk5/8/8/8/8/8 w - - 0 1