lichess.org
Donate

Potential bugs with the 'from position' functionality

Hey all, sometimes I like to experiment with the from position option that shows up when you do either play with a friend, or play against the computer, but it seeems like if you do a sufficiently weird position with lots of pieces, it just doesn't allow you to start the game.

For an example, try the following crazy position by going to the board editor and inputting this into the FEN code:

1nbPBppk/PnbBPpB1/PPBppPpb/NPppbpnP/ppPpp2n/R1pPPbbn/1RRbbPbN/KRRR1PP1 w - -

upon selecting 'play with the machine' it just won't let you even start the game at all. Is this intended as a way of preventing the computer from being worked too hard if the position is just too hard to analyse or something, or is it a bug?

As a side note, I think it'd be wonderful to be able to do 'from position' but for the other variants, for example imagine if you could easily play horde but with the rules of crazyhouse, or with the rules of atomic, or just any crazy custom position with the rules of antichess, imo that would be a lot of fun. No pressure as I love this site already but if you're in the mood for adding something that'd be my recommendation. Ty
I suspect this is because in the position above, Black's king is currently in check. If you run the position with it being Black's turn to move, it's fine--the king can merely move out of the way. But if you run the position with it being White's turn to move, White could capture Black's king with his bishop, which is a scenario that is impossible in chess. Thus, Stockfish locks up and refuses to analyze the position.
It's a stockfish issue.

$ ./stockfish_10_x64
Stockfish 10 64 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
position fen 1nbPBppk/PnbBPpB1/PPBppPpb/NPppbpnP/ppPpp2n/R1pPPbbn/1RRbbPbN/KRRR1PP1 w - -
go movetime 10
Segmentation fault (core dumped)
My bad with the example I gave, yes black's king is threatened which is an impossible situation, but if instead you try

2b1p2k/n1nB1p2/PPBpp1pb/NPppbpnP/2Ppp2n/R2PPbbn/2RRbPbN/KRRR1PP1 w - -

it still won't work, and this time, its a position without that impossible situation, iv made it so that both kings aren't threatened at the start of the game
It's work now:

./stockfish_10_x64
Stockfish 10 64 by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
position fen 2b1p2k/n1nB1p2/PPBpp1pb/NPppbpnP/2Ppp2n/R2PPbbn/2RRbPbN/KRRR1PP1 w - -
go movetime 10
info depth 1 seldepth 1 multipv 1 score cp 490 nodes 3394 nps 484857 tbhits 0 time 7 pv h2f3 e2d1
info depth 2 seldepth 3 multipv 1 score cp 565 nodes 4375 nps 546875 tbhits 0 time 8 pv d2e2 d4e3 d3d4 g3h2
info depth 3 seldepth 4 multipv 1 score cp 437 nodes 10837 nps 903083 tbhits 0 time 12 pv h2f3 e2d1 f3e5 g3e5
info depth 4 seldepth 5 multipv 1 score cp 425 nodes 16069 nps 1071266 tbhits 0 time 15 pv d2e2 f3e2 b6a7 d4e3 a1a2 e4d3
info depth 5 seldepth 6 multipv 1 score cp 565 nodes 16976 nps 1061000 tbhits 0 time 16 pv d2e2 d4e3 d3d4 g3h2
info depth 6 seldepth 7 multipv 1 score cp 556 upperbound nodes 25320 nps 1150909 tbhits 0 time 22 pv d2e2 d4e3
bestmove d2e2 ponder d4e3
Stockfish may be returning that as it's move answer, but what I'm saying is that when you try to start that position on lichess, it won't start the game and will instead return you to the home page
sry but *bump*, could be a bug and the post seems to have vanished from view

This topic has been archived and can no longer be replied to.