-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Board editor: possibly disable 960 Castling in standard #12926
Comments
If you don't want castle, then don't give black castling right : the fen you are looking for is When you do from position, castle are allowed in positions like this as is treated as a chess960 game. |
It's not "turning off castling in a Standard game". It's whether castling is still allowed in the current position. Once somebody lost castling rights on a side, it's impossible to get them back. Even in a position where castling looks like it would usually be allowed, it may still not be allowed because the rook or king already moved. If you don't want castling rights to be possible in the given situation, you can simply disable them. Though maybe adding 960 to the selection menu and disallowing 960 castling otherwise (i.e. always disabling casting rights |
I specifically think the issue is coming from (https://github.com/lichess-org/scalachess/blob/master/src/main/scala/Situation.scala) in scalachess where genCastling() [line 252] calculates different castling paths for standard vs chess960 but includes the 'fromposition' variant along with the 'chess960' variant when calculating 960 castling paths
I cannot confirm this since idk how to confirm my lila is using my local scalachess so if anyone knows how to configure lila to use a local version of scalachess or has that set up already and can check if thats the case that would be really helpful. Thanks |
this is expected behavior, though i suppose that assuming any "from position" might be 960 (and thus apply 960 castling rules) is mostly more confusing than not. like, if your from-position represents a situation where you've already castled, you're supposed to uncheck the "castling possible" boxes when setting up the position. that said, i agree that this is pretty confusing for most people, as most users don't even know that 960 exists, let alone want to apply 960 castling rules to their position. still, it should be possible for people to set up positions where they want to apply 960 castling rules. |
What if you disable castling by default? That way the behavior is consistent both on standard chess and Fisher random. |
Exact URL of where the bug happened
https://lichess.org/analysis/r5k1/1pp1qb1p/1p1r1p2/2n1pPp1/4P3/P2P1NP1/1PR1Q1BP/1R4K1_b_q_-_0_1?color=black
Steps to reproduce the bug
What did you expect to happen?
I did not expect to be able to castle !!
What happened instead?
See screenshot - a suggested move is to castle long:
Operating system
Windows 10 and Android
Browser and version (or alternate access method)
Vivaldi (Windows 10) and Chrome (Android)
Additional information
No response
The text was updated successfully, but these errors were encountered: