Comments (3)
Thanks for raising this issue 👍
I've updated the code which will be part of the 1.8 release:
private static boolean kingBlockedAtLastRank(final int kingIndex, final int kingColor, final ChessBoard cb) {
return cb.colorToMove != kingColor && (Bitboard.RANKS[7 * kingColor] & cb.pieces[kingColor][KING]) != 0
&& (StaticMoves.KING_MOVES[kingIndex] & cb.emptySpaces & ~cb.attacksAll[1 - kingColor] & Bitboard.RANKS[7 * kingColor])
== (StaticMoves.KING_MOVES[kingIndex] & cb.emptySpaces & ~cb.attacksAll[1 - kingColor]);
}
from chess22k.
Still a small problem when moving a rook or a queen from rank6 to rank7. attacksAll will have attacks to rank6 and this function when detecting safe rook checks will return the king is blocked.
3k4/7R/8/8/8/8/8/7K w - -
from chess22k.
Performance vs accuracy...
from chess22k.
Related Issues (15)
- why compose Java and Bitboard HOT 1
- Tests not working properly HOT 3
- Some issues in the C# port HOT 4
- Prospective improvements in the C# port HOT 4
- start chess22k ? HOT 1
- Which JAVA to use... HOT 3
- Wrong node count for Kiwipete Perft HOT 3
- Please add ARMv9.2, SVE2, Dot Product and Neon support HOT 1
- Screwed detection HOT 1
- Chess22k 1.8 under Windows 10 HOT 3
- Chess22k for android HOT 4
- PawnEvalCache key HOT 3
- Chess22k 1.12 doesn't works HOT 2
- whitePromotionDistance < blackPromotionDistance - 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chess22k.