lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.57k stars 2.28k forks source link

Impossible to get 3 stars for problem 9 of castling in /learn #15113

Closed anakojm closed 6 months ago

anakojm commented 6 months ago

Exact URL of where the bug happened

https://lichess.org/learn#/14/9

Steps to reproduce the bug

try to solve the puzzle (ex: 1. f3 2. NxC3 3. Ne2 4. Nf4 5. O-O-O).

What did you expect to happen?

get 3 stars as 5 moves is the fastest way to castle queenside (very much probably i’m not certain)

What happened instead?

got 2 stars out of 3

Operating system

Artix Linux

Browser and version (or alternate access method)

Librewolf 122.0-1

Additional information

In this commit the board is updated from a position where one can indeed castle in 4 moves (1. Na3 2. Nxc2 3. e3 4. O-O-O) to one where it is not possible, without changing the minimum required moves: https://github.com/lichess-org/lila/commit/39259314356ce03d12eafff0330d35bfa7cd724f i can make the PR to change it to 5 if you want

pbennyjoseph commented 6 months ago

I don't think this is a bug. There is a solution with 4 moves Nxc3, Ne2, f4 and O-O-O.

anakojm commented 6 months ago

Oh yes thanks. Sorry for the trouble.